SDL: Reordered the 8BitDo Pro 3 controller

From d53fcab609f081e5d8cc5883f1c29d94973fce1f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 15 Jul 2025 10:09:06 -0700
Subject: [PATCH] Reordered the 8BitDo Pro 3 controller

---
 src/joystick/hidapi/SDL_hidapi_8bitdo.c | 2 +-
 src/joystick/usb_ids.h                  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/joystick/hidapi/SDL_hidapi_8bitdo.c b/src/joystick/hidapi/SDL_hidapi_8bitdo.c
index 563ab96287ceb..d48e46671be9a 100644
--- a/src/joystick/hidapi/SDL_hidapi_8bitdo.c
+++ b/src/joystick/hidapi/SDL_hidapi_8bitdo.c
@@ -256,9 +256,9 @@ static Uint64 HIDAPI_Driver8BitDo_GetIMURateForProductID(SDL_HIDAPI_Device *devi
             // This firmware appears to update at 100 Hz over USB
             return 100;
         }
-    case USB_PRODUCT_8BITDO_PRO_3:
     case USB_PRODUCT_8BITDO_PRO_2:
     case USB_PRODUCT_8BITDO_PRO_2_BT: // Note, labeled as "BT" but appears this way when wired.
+    case USB_PRODUCT_8BITDO_PRO_3:
         if (device->is_bluetooth) {
             // Note, This is estimated by observation of Bluetooth packets received in the testcontroller tool
             return 85; // Observed Bluetooth packet rate seems to be 80-90hz
diff --git a/src/joystick/usb_ids.h b/src/joystick/usb_ids.h
index d9ff54f3cdfc9..ba75bbb8d6bbe 100644
--- a/src/joystick/usb_ids.h
+++ b/src/joystick/usb_ids.h
@@ -60,14 +60,14 @@
 #define USB_VENDOR_VALVE        0x28de
 #define USB_VENDOR_ZEROPLUS     0x0c12
 
-#define USB_PRODUCT_8BITDO_ULTIMATE2_WIRELESS             0x6012    // mode switch to BT 
-#define USB_PRODUCT_8BITDO_PRO_3                          0x6009    // mode switch to D 
 #define USB_PRODUCT_8BITDO_SF30_PRO                       0x6000    // B + START
 #define USB_PRODUCT_8BITDO_SF30_PRO_BT                    0x6100    // B + START
 #define USB_PRODUCT_8BITDO_SN30_PRO                       0x6001    // B + START
 #define USB_PRODUCT_8BITDO_SN30_PRO_BT                    0x6101    // B + START
 #define USB_PRODUCT_8BITDO_PRO_2                          0x6003    // mode switch to D 
 #define USB_PRODUCT_8BITDO_PRO_2_BT                       0x6006    // mode switch to D 
+#define USB_PRODUCT_8BITDO_PRO_3                          0x6009    // mode switch to D 
+#define USB_PRODUCT_8BITDO_ULTIMATE2_WIRELESS             0x6012    // mode switch to BT 
 #define USB_PRODUCT_AMAZON_LUNA_CONTROLLER                0x0419
 #define USB_PRODUCT_ASTRO_C40_XBOX360                     0x0024
 #define USB_PRODUCT_BACKBONE_ONE_IOS                      0x0103