Browse Source

Added support for trigger rumble for all Microsoft Xbox One controllers

Sam Lantinga 4 years ago
parent
commit
5427f4861b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/joystick/hidapi/SDL_hidapi_xboxone.c

+ 2 - 1
src/joystick/hidapi/SDL_hidapi_xboxone.c

@@ -138,7 +138,8 @@ ControllerHasPaddles(Uint16 vendor_id, Uint16 product_id)
 static SDL_bool
 ControllerHasTriggerRumble(Uint16 vendor_id, Uint16 product_id)
 {
-    return SDL_IsJoystickXboxOneElite(vendor_id, product_id);
+    // All the Microsoft Xbox One controllers have trigger rumble
+    return (vendor_id == USB_VENDOR_MICROSOFT);
 }
 
 static SDL_bool