mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed trying to use the HIDAPI driver for the original Xbox One S Bluetooth controller
This commit is contained in:
parent
8aaf945b2f
commit
2fd3f756d2
@ -171,12 +171,17 @@ IsBluetoothXboxOneController(Uint16 vendor_id, Uint16 product_id)
|
||||
{
|
||||
/* Check to see if it's the Xbox One S or Xbox One Elite Series 2 in Bluetooth mode */
|
||||
const Uint16 USB_VENDOR_MICROSOFT = 0x045e;
|
||||
const Uint16 USB_PRODUCT_XBOX_ONE_S = 0x02fd;
|
||||
const Uint16 USB_PRODUCT_XBOX_ONE_S_REV1 = 0x02e0;
|
||||
const Uint16 USB_PRODUCT_XBOX_ONE_S_REV2 = 0x02fd;
|
||||
const Uint16 USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2 = 0x0b05;
|
||||
|
||||
if (vendor_id == USB_VENDOR_MICROSOFT && (product_id == USB_PRODUCT_XBOX_ONE_S || product_id == USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2)) {
|
||||
if (vendor_id == USB_VENDOR_MICROSOFT) {
|
||||
if (product_id == USB_PRODUCT_XBOX_ONE_S_REV1 ||
|
||||
product_id == USB_PRODUCT_XBOX_ONE_S_REV2 ||
|
||||
product_id == USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user