浏览代码

Steam sets the device version of the Steam Virtual Gamepad to 0, for the best compatibility with old games

Sam Lantinga 2 年之前
父节点
当前提交
dc06116c71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_xbox360.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapi_xbox360.c

@@ -81,7 +81,7 @@ static SDL_bool HIDAPI_DriverXbox360_IsSupportedDevice(SDL_HIDAPI_Device *device
         return SDL_FALSE;
     }
 #ifdef __MACOS__
-    if (vendor_id == USB_VENDOR_MICROSOFT && product_id == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 1) {
+    if (vendor_id == USB_VENDOR_MICROSOFT && product_id == USB_PRODUCT_XBOX360_WIRED_CONTROLLER && version == 0) {
         /* This is the Steam Virtual Gamepad, which isn't supported by this driver */
         return SDL_FALSE;
     }