From 5ee4d176f1dc377c6f6dfca6a3ddda98645b5e44 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 21 Nov 2024 05:51:57 -0800
Subject: [PATCH] Added support for the Razer Wolverine V3 Pro
---
src/joystick/SDL_joystick.c | 3 ++-
src/joystick/usb_ids.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 7d03eda315c7f..ba56156c62859 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -2957,7 +2957,8 @@ bool SDL_IsJoystickXboxSeriesX(Uint16 vendor_id, Uint16 product_id)
}
if (vendor_id == USB_VENDOR_RAZER) {
if (product_id == USB_PRODUCT_RAZER_WOLVERINE_V2 ||
- product_id == USB_PRODUCT_RAZER_WOLVERINE_V2_CHROMA) {
+ product_id == USB_PRODUCT_RAZER_WOLVERINE_V2_CHROMA ||
+ product_id == USB_PRODUCT_RAZER_WOLVERINE_V3_PRO) {
return true;
}
}
diff --git a/src/joystick/usb_ids.h b/src/joystick/usb_ids.h
index 623ffcf49d2d2..9c202d97fed83 100644
--- a/src/joystick/usb_ids.h
+++ b/src/joystick/usb_ids.h
@@ -111,6 +111,7 @@
#define USB_PRODUCT_RAZER_WOLVERINE_V2_PRO_PS5_WIRELESS 0x100c
#define USB_PRODUCT_RAZER_WOLVERINE_V2_PRO_XBOX_WIRED 0x1010
#define USB_PRODUCT_RAZER_WOLVERINE_V2_PRO_XBOX_WIRELESS 0x1011
+#define USB_PRODUCT_RAZER_WOLVERINE_V3_PRO 0x0a3f
#define USB_PRODUCT_ROG_RAIKIRI 0x1a38
#define USB_PRODUCT_SAITEK_CYBORG_V3 0xf622
#define USB_PRODUCT_SHANWAN_DS3 0x0523