mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 08:42:45 +01:00
input/sdl_impl: fix rumble support on DualSense. (#6683)
- value return can be different 0, is not error is normal, error is only -1.
This commit is contained in:
parent
07073734ed
commit
6573ff64b4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue