mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-19 12:22:32 +00:00
Allow background joystick input on SDL
This commit is contained in:
parent
364b7e26bf
commit
14187f9311
@ -14,8 +14,8 @@ static int SDLJoystickEventHandlerWrapper(void* userdata, SDL_Event* event)
|
||||
}
|
||||
|
||||
SDLJoystick::SDLJoystick(bool init_SDL ) : registeredAsEventHandler(false) {
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||
if (init_SDL) {
|
||||
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
|
||||
SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user