mirror of https://github.com/encounter/aurora.git
Add `allowJoystickBackgroundEvents` to config
This commit is contained in:
parent
5589b24df6
commit
6f68612151
|
@ -57,6 +57,7 @@ typedef struct {
|
|||
uint32_t msaa;
|
||||
uint16_t maxTextureAnisotropy;
|
||||
bool startFullscreen;
|
||||
bool allowJoystickBackgroundEvents;
|
||||
int32_t windowPosX;
|
||||
int32_t windowPosY;
|
||||
uint32_t windowWidth;
|
||||
|
|
|
@ -225,8 +225,9 @@ bool initialize() {
|
|||
#endif
|
||||
|
||||
SDL_DisableScreenSaver();
|
||||
/* TODO: Make this an option rather than hard coding it */
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||
if (g_config.allowJoystickBackgroundEvents) {
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue