mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 21:17:45 +00:00
Only select the gamepad interfaces on the Xbox 360 wireless adapter
This commit is contained in:
@@ -49,7 +49,7 @@ HIDAPI_DriverXbox360W_IsSupportedDevice(const char *name, SDL_GameControllerType
|
|||||||
{
|
{
|
||||||
const int XB360W_IFACE_PROTOCOL = 129; /* Wireless */
|
const int XB360W_IFACE_PROTOCOL = 129; /* Wireless */
|
||||||
|
|
||||||
if ((vendor_id == USB_VENDOR_MICROSOFT && (product_id == 0x0291 || product_id == 0x02a9 || product_id == 0x0719)) ||
|
if ((vendor_id == USB_VENDOR_MICROSOFT && (product_id == 0x0291 || product_id == 0x02a9 || product_id == 0x0719) && interface_protocol == 0) ||
|
||||||
(type == SDL_CONTROLLER_TYPE_XBOX360 && interface_protocol == XB360W_IFACE_PROTOCOL)) {
|
(type == SDL_CONTROLLER_TYPE_XBOX360 && interface_protocol == XB360W_IFACE_PROTOCOL)) {
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user