@@ -115,7 +115,7 @@ static bool HIDAPI_DriverCombined_RumbleJoystick(SDL_HIDAPI_Device *device, SDL_
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,7 +129,7 @@ static bool HIDAPI_DriverCombined_RumbleJoystickTriggers(SDL_HIDAPI_Device *devi
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,7 +155,7 @@ static bool HIDAPI_DriverCombined_SetJoystickLED(SDL_HIDAPI_Device *device, SDL_
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,7 +174,7 @@ static bool HIDAPI_DriverCombined_SetJoystickSensorsEnabled(SDL_HIDAPI_Device *d
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
}
0 commit comments