diff --git a/es-core/src/InputManager.cpp b/es-core/src/InputManager.cpp index 9437b7a4f..3bd26b897 100644 --- a/es-core/src/InputManager.cpp +++ b/es-core/src/InputManager.cpp @@ -46,9 +46,8 @@ void InputManager::init() if(initialized()) deinit(); - if (Settings::getInstance()->getBool("BackgroundJoystickInput")){ - SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); - } + SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, + Settings::getInstance()->getBool("BackgroundJoystickInput") ? "1" : "0"); SDL_InitSubSystem(SDL_INIT_JOYSTICK); SDL_JoystickEventState(SDL_ENABLE);