diff options
| author | 2021-08-12 13:12:48 -0500 | |
|---|---|---|
| committer | 2021-08-12 13:17:07 -0500 | |
| commit | 2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3 (patch) | |
| tree | a426a0e9be3ee326496195d90fbba07c2111d583 /src/input_common/sdl/sdl_impl.cpp | |
| parent | Merge pull request #6855 from german77/sdl16 (diff) | |
| download | yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.gz yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.xz yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.zip | |
input_common: Disable sdl raw input mode
Diffstat (limited to '')
| -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() { | |||
| 889 | RegisterFactory<VibrationDevice>("sdl", vibration_factory); | 889 | RegisterFactory<VibrationDevice>("sdl", vibration_factory); |
| 890 | RegisterFactory<MotionDevice>("sdl", motion_factory); | 890 | RegisterFactory<MotionDevice>("sdl", motion_factory); |
| 891 | 891 | ||
| 892 | // Disable raw input. When enabled this setting causes SDL to die when a web applet opens | ||
| 893 | SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); | ||
| 894 | |||
| 892 | // Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers | 895 | // Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers |
| 893 | SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); | 896 | SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); |
| 894 | SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); | 897 | SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); |