summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-08-12 20:12:48 +0200
committergerman77 <juangerman-13@hotmail.com>2021-08-12 20:17:07 +0200
commit2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3 (patch)
treea426a0e9be3ee326496195d90fbba07c2111d583 /src
parentMerge pull request #6855 from german77/sdl16 (diff)
downloadyuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar
yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.gz
yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.bz2
yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.lz
yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.xz
yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.tar.zst
yuzu-2a2f0bfe9efc803803b7d9fb291aaeacedca6ad3.zip
Diffstat (limited to 'src')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp3
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");