Commit 99759bac82872c02d5c964ae0e68bea068ccacde

Sam Lantinga 2018-08-09T16:04:34

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/joystick/windows/SDL_xinputjoystick.c b/src/joystick/windows/SDL_xinputjoystick.c
index 6ca369b..623a756 100644
--- a/src/joystick/windows/SDL_xinputjoystick.c
+++ b/src/joystick/windows/SDL_xinputjoystick.c
@@ -259,6 +259,7 @@ 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 */
@@ -266,6 +267,7 @@ AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
         return;
     }
 #endif
+#endif
 
     WINDOWS_AddJoystickDevice(pNewJoystick);
 }