[Commits] SDL: Speculatively disable rumble on the Razer Panthera Evo, whi...

libsdl.org revision control commits-owner at libsdl.org
Wed Sep 5 15:29:09 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/1bc855492aaf
changeset: 12176:1bc855492aaf
user:      Sam Lantinga <slouken at libsdl.org>
date:      Wed Sep 05 15:28:06 2018 -0700
description:
Speculatively disable rumble on the Razer Panthera Evo, which doesn't have rumble motors and probably hangs in the same way the Panthera does.

diffstat:

 src/joystick/hidapi/SDL_hidapi_ps4.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 0061cfbdd0c5 -r 1bc855492aaf src/joystick/hidapi/SDL_hidapi_ps4.c
--- a/src/joystick/hidapi/SDL_hidapi_ps4.c	Wed Sep 05 13:04:50 2018 -0700
+++ b/src/joystick/hidapi/SDL_hidapi_ps4.c	Wed Sep 05 15:28:06 2018 -0700
@@ -44,6 +44,7 @@
 
 #define RAZER_USB_VID       0x1532
 #define RAZER_PANTHERA_PID  0X0401
+#define RAZER_PANTHERA_EVO_PID  0x1008
 
 #define USB_PACKET_LENGTH   64
 
@@ -264,7 +265,8 @@
 static SDL_bool HIDAPI_DriverPS4_CanRumble(Uint16 vendor_id, Uint16 product_id)
 {
     /* The Razer Panthera fight stick hangs when trying to rumble */
-    if (vendor_id == RAZER_USB_VID && product_id == RAZER_PANTHERA_PID) {
+    if (vendor_id == RAZER_USB_VID &&
+        (product_id == RAZER_PANTHERA_PID || product_id == RAZER_PANTHERA_EVO_PID)) {
         return SDL_FALSE;
     }
     return SDL_TRUE;


More information about the commits mailing list