From f01cdcedbcd2eb82af3a2aa4ad989f889657b11a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 5 Oct 2018 01:41:59 -0700 Subject: [PATCH] It turns out HIDAPI for Xbox controllers doesn't allow background input, so we won't enable it by default on Windows. --- src/joystick/hidapi/SDL_hidapijoystick_c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapijoystick_c.h b/src/joystick/hidapi/SDL_hidapijoystick_c.h index 34582ea6b..18a448339 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick_c.h +++ b/src/joystick/hidapi/SDL_hidapijoystick_c.h @@ -34,6 +34,8 @@ #ifdef __WINDOWS__ /* On Windows, Xbox One controllers are handled by the Xbox 360 driver */ #undef SDL_JOYSTICK_HIDAPI_XBOXONE +/* It turns out HIDAPI for Xbox controllers doesn't allow background input */ +#undef SDL_JOYSTICK_HIDAPI_XBOX360 #endif #ifdef __MACOSX__