Browse Source

input/sdl_impl: fix rumble support on DualSense. (#6683)

- value return can be different 0, is not error is normal, error is only -1.
nce_cpp
Nicolas Jallamion 5 years ago
committed by GitHub
parent
commit
d417596f27
  1. 4
      src/input_common/sdl/sdl_impl.cpp

4
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;

Loading…
Cancel
Save