mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Set hint regardless of setting (in case it is changed during run-time).
This commit is contained in:
parent
da42b784b2
commit
2926442bf0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue