SDL: Added support for the PowerA MOGA XP-Ultra Controller

From 517a2afcbde58d67e1822a5f4e828c718c3c954a Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 19 May 2023 14:38:50 -0700
Subject: [PATCH] Added support for the PowerA MOGA XP-Ultra Controller

---
 src/joystick/SDL_joystick.c | 1 +
 src/joystick/usb_ids.h      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index bc509bd0f8e2..518f2b7a2652 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -2188,6 +2188,7 @@ SDL_bool SDL_IsJoystickXboxSeriesX(Uint16 vendor_id, Uint16 product_id)
     if (vendor_id == USB_VENDOR_POWERA_ALT) {
         if ((product_id >= 0x2001 && product_id <= 0x201a) ||
             product_id == USB_PRODUCT_XBOX_SERIES_X_POWERA_FUSION_PRO2 ||
+            product_id == USB_PRODUCT_XBOX_SERIES_X_POWERA_MOGA_XP_ULTRA ||
             product_id == USB_PRODUCT_XBOX_SERIES_X_POWERA_SPECTRA) {
             return SDL_TRUE;
         }
diff --git a/src/joystick/usb_ids.h b/src/joystick/usb_ids.h
index 23674a42256d..3a237c882c21 100644
--- a/src/joystick/usb_ids.h
+++ b/src/joystick/usb_ids.h
@@ -128,6 +128,7 @@
 #define USB_PRODUCT_XBOX_SERIES_X_PDP_BLUE                0x02d9
 #define USB_PRODUCT_XBOX_SERIES_X_PDP_AFTERGLOW           0x02da
 #define USB_PRODUCT_XBOX_SERIES_X_POWERA_FUSION_PRO2      0x4001
+#define USB_PRODUCT_XBOX_SERIES_X_POWERA_MOGA_XP_ULTRA    0x890b
 #define USB_PRODUCT_XBOX_SERIES_X_POWERA_SPECTRA          0x4002
 #define USB_PRODUCT_XBOX_ONE_XBOXGIP_CONTROLLER           0x02ff /* XBOXGIP driver software PID */
 #define USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER            0x02fe /* Made up product ID for XInput */