From e6af3cf2f4c5849c973634c86382485ca0949429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 5 Feb 2015 09:49:31 +0100 Subject: [PATCH] Try workaround for SDL joystick dpad problems as mentioned in #7428 --- SDL/SDLJoystick.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SDL/SDLJoystick.cpp b/SDL/SDLJoystick.cpp index 441a5dfb6d..ad873c3afe 100644 --- a/SDL/SDLJoystick.cpp +++ b/SDL/SDLJoystick.cpp @@ -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();