Browse Source

[input_common] fix xinput raw not working on sdl2

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/3305/head
lizzie 3 weeks ago
committed by crueter
parent
commit
eb62d4d2d4
  1. 4
      src/input_common/drivers/sdl_driver.cpp

4
src/input_common/drivers/sdl_driver.cpp

@ -493,10 +493,8 @@ SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_en
// their desktop environment. // their desktop environment.
SDL_SetHint(SDL_HINT_APP_NAME, "Eden"); SDL_SetHint(SDL_HINT_APP_NAME, "Eden");
if (!Settings::values.enable_raw_input) {
// Disable raw input. When enabled this setting causes SDL to die when a web applet opens // Disable raw input. When enabled this setting causes SDL to die when a web applet opens
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0");
}
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, Settings::values.enable_raw_input ? "1" : "0");
// Prevent SDL from adding undesired axis // Prevent SDL from adding undesired axis
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");

Loading…
Cancel
Save