Simple Directmedia Layer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed return value setting state on combined Joy-Con controllers

+4 -4
+4 -4
src/joystick/hidapi/SDL_hidapi_combined.c
··· 115 115 116 116 for (i = 0; i < device->num_children; ++i) { 117 117 SDL_HIDAPI_Device *child = device->children[i]; 118 - if (child->driver->RumbleJoystick(child, joystick, low_frequency_rumble, high_frequency_rumble) == 0) { 118 + if (child->driver->RumbleJoystick(child, joystick, low_frequency_rumble, high_frequency_rumble)) { 119 119 result = true; 120 120 } 121 121 } ··· 129 129 130 130 for (i = 0; i < device->num_children; ++i) { 131 131 SDL_HIDAPI_Device *child = device->children[i]; 132 - if (child->driver->RumbleJoystickTriggers(child, joystick, left_rumble, right_rumble) == 0) { 132 + if (child->driver->RumbleJoystickTriggers(child, joystick, left_rumble, right_rumble)) { 133 133 result = true; 134 134 } 135 135 } ··· 155 155 156 156 for (i = 0; i < device->num_children; ++i) { 157 157 SDL_HIDAPI_Device *child = device->children[i]; 158 - if (child->driver->SetJoystickLED(child, joystick, red, green, blue) == 0) { 158 + if (child->driver->SetJoystickLED(child, joystick, red, green, blue)) { 159 159 result = true; 160 160 } 161 161 } ··· 174 174 175 175 for (i = 0; i < device->num_children; ++i) { 176 176 SDL_HIDAPI_Device *child = device->children[i]; 177 - if (child->driver->SetJoystickSensorsEnabled(child, joystick, enabled) == 0) { 177 + if (child->driver->SetJoystickSensorsEnabled(child, joystick, enabled)) { 178 178 result = true; 179 179 } 180 180 }