- Allow background gamepad input on linux as well.

This commit is contained in:
drfrag 2019-07-02 13:54:05 +02:00
parent 3f9643e1ca
commit 29264b764b

View file

@ -298,6 +298,7 @@ static SDLInputJoystickManager *JoystickManager;
void I_StartupJoysticks()
{
SDL_SetHint("SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS", "1");
if(SDL_InitSubSystem(SDL_INIT_JOYSTICK) >= 0)
JoystickManager = new SDLInputJoystickManager();
}