From 2926442bf010b8dc9d15255e78cf3462d035f388 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Thu, 15 Jan 2015 17:47:31 -0600 Subject: [PATCH] Set hint regardless of setting (in case it is changed during run-time). --- es-core/src/InputManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);