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;
|
uint32_t msaa;
|
||||||
uint16_t maxTextureAnisotropy;
|
uint16_t maxTextureAnisotropy;
|
||||||
bool startFullscreen;
|
bool startFullscreen;
|
||||||
|
bool allowJoystickBackgroundEvents;
|
||||||
int32_t windowPosX;
|
int32_t windowPosX;
|
||||||
int32_t windowPosY;
|
int32_t windowPosY;
|
||||||
uint32_t windowWidth;
|
uint32_t windowWidth;
|
||||||
|
|
|
@ -225,8 +225,9 @@ bool initialize() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
/* TODO: Make this an option rather than hard coding it */
|
if (g_config.allowJoystickBackgroundEvents) {
|
||||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue