From 3c68051eaf14f65a219efdae8321827c69af5e5c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 4 Dec 2020 15:47:28 -0800 Subject: [PATCH] Allow background input when testing game controllers --- test/testgamecontroller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index e9a67e4d9fc2a..6522885cf2c73 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -425,6 +425,7 @@ main(int argc, char *argv[]) SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); + SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); /* Enable standard application logging */ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);