diff options
| author | bunnei <bunneidev@gmail.com> | 2021-08-12 21:14:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 21:14:26 -0700 |
| commit | 53649811335a53cb2f4e4c577aaa3c93f7e9b074 (patch) | |
| tree | aa7bb7bb0c615817020cbf14a810d6d2b08763e5 /src/input_common/sdl/sdl_impl.cpp | |
| parent | 1b274368b1578091127f12bee2564f500c48fd1a (diff) | |
| parent | 134a2c23ac512454481f67ece82351c203c30cb5 (diff) | |
Merge pull request #6862 from german77/badsdl
input_common: Disable sdl raw input mode
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index f1f950d8a7..f102410d17 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp @@ -889,6 +889,9 @@ SDLState::SDLState() { RegisterFactory<VibrationDevice>("sdl", vibration_factory); RegisterFactory<MotionDevice>("sdl", motion_factory); + // Disable raw input. When enabled this setting causes SDL to die when a web applet opens + SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); + // Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); |
