瀏覽代碼

There's no controller that's supported by both XInput and HIDAPI

Sam Lantinga 7 年之前
父節點
當前提交
99759bac82
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/joystick/windows/SDL_xinputjoystick.c

+ 2 - 0
src/joystick/windows/SDL_xinputjoystick.c

@@ -259,12 +259,14 @@ AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
         return;
     }
 
+#if 0 /* There's no controller that's supported by both XInput and HIDAPI */
 #ifdef SDL_JOYSTICK_HIDAPI
     if (HIDAPI_IsDevicePresent(vendor, product)) {
         /* The HIDAPI driver is taking care of this device */
         SDL_free(pNewJoystick);
         return;
     }
+#endif
 #endif
 
     WINDOWS_AddJoystickDevice(pNewJoystick);