SDL: deal with controllers that don't have report ids (22145)

From 2214522b6986448b7748c74f2161a145e6efda59 Mon Sep 17 00:00:00 2001
From: Sanjay Govind <[EMAIL REDACTED]>
Date: Wed, 25 Feb 2026 11:52:35 +1300
Subject: [PATCH] deal with controllers that don't have report ids

(cherry picked from commit 1419bcb6cb55bff6e9d710db9348806ba886bcec)
---
 src/joystick/hidapi/SDL_hidapi_ps3.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/joystick/hidapi/SDL_hidapi_ps3.c b/src/joystick/hidapi/SDL_hidapi_ps3.c
index ede49cbaa753a..37a2b1314fef8 100644
--- a/src/joystick/hidapi/SDL_hidapi_ps3.c
+++ b/src/joystick/hidapi/SDL_hidapi_ps3.c
@@ -635,7 +635,14 @@ static bool HIDAPI_DriverPS3ThirdParty_IsSupportedDevice(SDL_HIDAPI_Device *devi
                 // Supported third party controller
                 return true;
             } else {
-                return false;
+                // Some third party controllers don't have report ids
+                size = ReadFeatureReport(device->dev, 0x00, data, sizeof(data));
+                if (size == 9 && data[2] == 0x26) {
+                    // Supported third party controller
+                    return true;
+                } else {
+                    return false;
+                }
             }
         } else {
             // Might be supported by this driver, enumerate and find out