diff options
author | Nicolas Jallamion <dante38@free.fr> | 2021-07-20 10:00:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 10:00:07 +0200 |
commit | 6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4 (patch) | |
tree | 986c81614ac984cb23e239da05d503b3fcea6b2d /src/input_common | |
parent | file_sys: Support load game collection (#6582) (diff) | |
download | yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.tar yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.tar.gz yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.tar.bz2 yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.tar.lz yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.tar.xz yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.tar.zst yuzu-6573ff64b4a400ca7afebcb30d4d2f326fcdf4f4.zip |
Diffstat (limited to 'src/input_common')
-rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 68672a92b..1656b85fb 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp @@ -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; |