mirror of https://github.com/encounter/SDL.git
There's no controller that's supported by both XInput and HIDAPI
This commit is contained in:
parent
ab07ce1166
commit
99759bac82
|
@ -259,12 +259,14 @@ AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* There's no controller that's supported by both XInput and HIDAPI */
|
||||||
#ifdef SDL_JOYSTICK_HIDAPI
|
#ifdef SDL_JOYSTICK_HIDAPI
|
||||||
if (HIDAPI_IsDevicePresent(vendor, product)) {
|
if (HIDAPI_IsDevicePresent(vendor, product)) {
|
||||||
/* The HIDAPI driver is taking care of this device */
|
/* The HIDAPI driver is taking care of this device */
|
||||||
SDL_free(pNewJoystick);
|
SDL_free(pNewJoystick);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WINDOWS_AddJoystickDevice(pNewJoystick);
|
WINDOWS_AddJoystickDevice(pNewJoystick);
|
||||||
|
|
Loading…
Reference in New Issue