mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
C89_BUILD fixes
This commit is contained in:
parent
f7744d812e
commit
b464014a51
@ -60,9 +60,9 @@ static void hidpad_ps3_send_control(struct hidpad_ps3_data* device)
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
|
||||
// Turn on the appropriate LED
|
||||
/* Turn on the appropriate LED */
|
||||
report_buffer[11] = 1 << ((device->slot % 4) + 1);
|
||||
// Set rumble state
|
||||
/* Set rumble state */
|
||||
report_buffer[4] = device->motors[1] >> 8;
|
||||
report_buffer[6] = device->motors[0] >> 8;
|
||||
#ifdef HAVE_WIIUSB_HID
|
||||
|
@ -176,9 +176,9 @@ static input_device_driver_t *joypad_drivers[] = {
|
||||
#ifdef DJGPP
|
||||
&dos_joypad,
|
||||
#endif
|
||||
// Selecting the HID gamepad driver disables the Wii U gamepad. So while
|
||||
// we want the HID code to be compiled & linked, we don't want the driver
|
||||
// to be selectable in the UI.
|
||||
/* Selecting the HID gamepad driver disables the Wii U gamepad. So while
|
||||
* we want the HID code to be compiled & linked, we don't want the driver
|
||||
* to be selectable in the UI. */
|
||||
#if defined(HAVE_HID) && !defined(WIIU)
|
||||
&hid_joypad,
|
||||
#endif
|
||||
@ -1829,12 +1829,13 @@ const void *hid_driver_get_data(void)
|
||||
return hid_data;
|
||||
}
|
||||
|
||||
// This is only to be called after we've invoked free() on the
|
||||
// HID driver; the memory will have already been freed, so we need to
|
||||
// reset the pointer.
|
||||
/* This is only to be called after we've invoked free() on the
|
||||
* HID driver; the memory will have already been freed, so we need to
|
||||
* reset the pointer.
|
||||
*/
|
||||
void hid_driver_reset_data(void)
|
||||
{
|
||||
hid_data = NULL;
|
||||
hid_data = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user