summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp4
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 a49d93f01..7778b3562 100644
--- a/src/input_common/sdl/sdl_impl.cpp
+++ b/src/input_common/sdl/sdl_impl.cpp
@@ -165,10 +165,10 @@ public:
165 165
166 if (sdl_controller) { 166 if (sdl_controller) {
167 return SDL_GameControllerRumble(sdl_controller.get(), amp_low, amp_high, 167 return SDL_GameControllerRumble(sdl_controller.get(), amp_low, amp_high,
168 rumble_max_duration_ms) == 0; 168 rumble_max_duration_ms) != -1;
169 } else if (sdl_joystick) { 169 } else if (sdl_joystick) {
170 return SDL_JoystickRumble(sdl_joystick.get(), amp_low, amp_high, 170 return SDL_JoystickRumble(sdl_joystick.get(), amp_low, amp_high,
171 rumble_max_duration_ms) == 0; 171 rumble_max_duration_ms) != -1;
172 } 172 }
173 173
174 return false; 174 return false;