فهرست منبع

It turns out HIDAPI for Xbox controllers doesn't allow background input, so we won't enable it by default on Windows.

Sam Lantinga 7 سال پیش
والد
کامیت
f01cdcedbc
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/joystick/hidapi/SDL_hidapijoystick_c.h

+ 2 - 0
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__