diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-13 06:14:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 06:14:26 +0200 |
commit | 71d8d84b59ae6e1cfad37d70e6ea7d61001326f3 (patch) | |
tree | aa7bb7bb0c615817020cbf14a810d6d2b08763e5 /src | |
parent | Merge pull request #6838 from ameerj/sws-align (diff) | |
parent | input_common: Disable sdl raw input mode (diff) | |
download | yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.tar yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.tar.gz yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.tar.bz2 yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.tar.lz yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.tar.xz yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.tar.zst yuzu-71d8d84b59ae6e1cfad37d70e6ea7d61001326f3.zip |
Diffstat (limited to 'src')
-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 f1f950d8a..f102410d1 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"); |