Explorar o código

Merge pull request #6862 from german77/badsdl

input_common: Disable sdl raw input mode
bunnei %!s(int64=5) %!d(string=hai) anos
pai
achega
71d8d84b59
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/input_common/sdl/sdl_impl.cpp

+ 3 - 0
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");