mirror of
https://github.com/yawut/SDL.git
synced 2026-07-19 01:11:38 -05:00
There's no controller that's supported by both XInput and HIDAPI
This commit is contained in:
parent
efdea54cd7
commit
1d18743335
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user