mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 07:13:35 +00:00
Added support for the Flydigi Apex 5 controller (#14218)
This commit is contained in:
@@ -1066,7 +1066,13 @@ bool SDL_HIDAPI_ShouldIgnoreDevice(int bus, Uint16 vendor_id, Uint16 product_id,
|
||||
(usage == USB_USAGE_GENERIC_KEYBOARD || usage == USB_USAGE_GENERIC_MOUSE)) {
|
||||
return true;
|
||||
}
|
||||
} else if (vendor_id == USB_VENDOR_FLYDIGI && product_id == USB_PRODUCT_FLYDIGI_GAMEPAD) {
|
||||
} else if (vendor_id == USB_VENDOR_FLYDIGI_V1 && product_id == USB_PRODUCT_FLYDIGI_V1_GAMEPAD) {
|
||||
if (usage_page == USB_USAGEPAGE_VENDOR_FLYDIGI) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
} else if (vendor_id == USB_VENDOR_FLYDIGI_V2 &&
|
||||
(product_id == USB_PRODUCT_FLYDIGI_V2_APEX || product_id == USB_PRODUCT_FLYDIGI_V2_VADER)) {
|
||||
if (usage_page == USB_USAGEPAGE_VENDOR_FLYDIGI) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user