mirror of https://github.com/encounter/SDL.git
Fixed the SDL controller type for USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER
This commit is contained in:
parent
41e7d1baa6
commit
1b7669374e
|
@ -1944,6 +1944,9 @@ SDL_GetJoystickGameControllerType(const char *name, Uint16 vendor, Uint16 produc
|
||||||
} else if (vendor == 0x0001 && product == 0x0001) {
|
} else if (vendor == 0x0001 && product == 0x0001) {
|
||||||
type = SDL_CONTROLLER_TYPE_UNKNOWN;
|
type = SDL_CONTROLLER_TYPE_UNKNOWN;
|
||||||
|
|
||||||
|
} else if (vendor == USB_VENDOR_MICROSOFT && product == USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER) {
|
||||||
|
type = SDL_CONTROLLER_TYPE_XBOXONE;
|
||||||
|
|
||||||
} else if ((vendor == USB_VENDOR_AMAZON && product == USB_PRODUCT_AMAZON_LUNA_CONTROLLER) ||
|
} else if ((vendor == USB_VENDOR_AMAZON && product == USB_PRODUCT_AMAZON_LUNA_CONTROLLER) ||
|
||||||
(vendor == BLUETOOTH_VENDOR_AMAZON && product == BLUETOOTH_PRODUCT_LUNA_CONTROLLER)) {
|
(vendor == BLUETOOTH_VENDOR_AMAZON && product == BLUETOOTH_PRODUCT_LUNA_CONTROLLER)) {
|
||||||
type = SDL_CONTROLLER_TYPE_AMAZON_LUNA;
|
type = SDL_CONTROLLER_TYPE_AMAZON_LUNA;
|
||||||
|
|
Loading…
Reference in New Issue