Allow background input when testing game controllers
authorSam Lantinga
Fri, 04 Dec 2020 15:47:28 -0800
changeset 144319be2761aa0f3
parent 14430 2861f8ae05f4
child 14432 bfd613afc7e0
Allow background input when testing game controllers
test/testgamecontroller.c
     1.1 --- a/test/testgamecontroller.c	Thu Dec 03 19:44:47 2020 -0800
     1.2 +++ b/test/testgamecontroller.c	Fri Dec 04 15:47:28 2020 -0800
     1.3 @@ -425,6 +425,7 @@
     1.4  
     1.5      SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
     1.6      SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
     1.7 +    SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
     1.8  
     1.9      /* Enable standard application logging */
    1.10      SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);