diff --git a/input/connect/connect_ps3.c b/input/connect/connect_ps3.c index 55466d0ff8..61269a9e88 100644 --- a/input/connect/connect_ps3.c +++ b/input/connect/connect_ps3.c @@ -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 diff --git a/input/input_driver.c b/input/input_driver.c index af88927b33..ccde131684 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -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; } /**