Compare commits

...

1 Commits

Author SHA1 Message Date
Zangetsu38
dc9d3e536f input/sdl_impl: fix rumble support on DualSense.
- value return can be different 0, is not error is normal, error is only -1.
2021-07-20 09:36:29 +02:00

View File

@@ -130,10 +130,10 @@ public:
if (sdl_controller) {
return SDL_GameControllerRumble(sdl_controller.get(), amp_low, amp_high,
rumble_max_duration_ms) == 0;
rumble_max_duration_ms) != -1;
} else if (sdl_joystick) {
return SDL_JoystickRumble(sdl_joystick.get(), amp_low, amp_high,
rumble_max_duration_ms) == 0;
rumble_max_duration_ms) != -1;
}
return false;