Try workaround for SDL joystick dpad problems as mentioned in #7428

This commit is contained in:
Henrik Rydgård 2015-02-05 09:49:31 +01:00
parent e5706ac9ff
commit e6af3cf2f4

View File

@ -13,6 +13,7 @@ extern "C" {
SDLJoystick::SDLJoystick(bool init_SDL ): thread(NULL), running(true) {
if (init_SDL)
{
SDL_setenv("SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS", "1", 0);
SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_VIDEO);
}
fillMapping();