SDL: Add support for MadCatz Saitek Side Panel Control Deck (fa18c)

From fa18c9bf4aeefa15b0034b5063f57cd8c2de1b8a Mon Sep 17 00:00:00 2001
From: Marcel Hild <[EMAIL REDACTED]>
Date: Fri, 22 Mar 2024 16:35:56 +0100
Subject: [PATCH] Add support for MadCatz Saitek Side Panel Control Deck

Signed-off-by: Marcel Hild <hild@b4mad.net>
(cherry picked from commit 67e425bcf810b7b76e7cbb712db1c3ae7ab10aeb)
---
 src/joystick/hidapi/SDL_hidapijoystick.c | 4 ++++
 src/joystick/usb_ids.h                   | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index 81453eec469a1..1584a2cf9df43 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick.c
+++ b/src/joystick/hidapi/SDL_hidapijoystick.c
@@ -168,6 +168,10 @@ SDL_bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product)
         }
         return SDL_TRUE;
     case USB_VENDOR_MADCATZ:
+        if (product == USB_PRODUCT_MADCATZ_SAITEK_SIDE_PANEL_CONTROL_DECK) {
+            /* This is not a Playstation compatible device */
+            return SDL_FALSE;
+        }
         return SDL_TRUE;
     case USB_VENDOR_MAYFLASH:
         return SDL_TRUE;
diff --git a/src/joystick/usb_ids.h b/src/joystick/usb_ids.h
index 1e218a4b53b11..19ca22710eeab 100644
--- a/src/joystick/usb_ids.h
+++ b/src/joystick/usb_ids.h
@@ -71,6 +71,7 @@
 #define USB_PRODUCT_HORI_FIGHTING_STICK_ALPHA_PS5         0x0184
 #define USB_PRODUCT_LOGITECH_F310                         0xc216
 #define USB_PRODUCT_LOGITECH_CHILLSTREAM                  0xcad1
+#define USB_PRODUCT_MADCATZ_SAITEK_SIDE_PANEL_CONTROL_DECK 0x2218
 #define USB_PRODUCT_NACON_REVOLUTION_5_PRO_PS4_WIRELESS   0x0d16
 #define USB_PRODUCT_NACON_REVOLUTION_5_PRO_PS4_WIRED      0x0d17
 #define USB_PRODUCT_NACON_REVOLUTION_5_PRO_PS5_WIRELESS   0x0d18