From ffc73813374db2d5c859c2010e3e9aaabbb51319 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 7 Jul 2026 09:30:20 -0700
Subject: [PATCH] Only skip the Flydigi driver when checking to see if a device
is handled by HIDAPI
(cherry picked from commit cf6a235a41c2f52656e97820881f28c7cd4a91e6)
---
src/joystick/hidapi/SDL_hidapijoystick.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index 5c26d9a3ba347..53d83b8c979ba 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick.c
+++ b/src/joystick/hidapi/SDL_hidapijoystick.c
@@ -1332,7 +1332,7 @@ bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version,
// changes when that happens, we'll pretend the driver isn't available so the XInput
// interface will always show up (but won't have any input when the controller is in
// enhanced mode)
- if (device->vendor_id == USB_VENDOR_FLYDIGI_V2) {
+ if (device->vendor_id == USB_VENDOR_FLYDIGI_V2 && device->driver == &SDL_HIDAPI_DriverFlydigi) {
continue;
}