Add Flydigi VADER 4 Pro HIDAPI support (#12874)

This commit is contained in:
bakatrouble 2025-05-22 19:56:17 +03:00 committed by GitHub
parent 8d9a4fe843
commit 354895d975
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 461 additions and 2 deletions

View file

@ -1109,6 +1109,11 @@ 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_VADER4_PRO) {
if (usage_page == USB_USAGEPAGE_VENDOR_FLYDIGI) {
return false;
}
return true;
} else if (usage_page == USB_USAGEPAGE_GENERIC_DESKTOP &&
(usage == USB_USAGE_GENERIC_JOYSTICK || usage == USB_USAGE_GENERIC_GAMEPAD || usage == USB_USAGE_GENERIC_MULTIAXISCONTROLLER)) {
// This is a controller