Package: mupen64plus-input-sdl / 2.0-4

xboxdrv_rumble_war.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Add workaround for missing rumble with xboxdrv
Author: Sven Eckelmann <sven@narfation.org>

---
diff --git a/src/plugin.c b/src/plugin.c
index 16ad6f7c146c77ef0daf677f22e6a077d8ceec42..c7c4e76b23901b49354a5f66c0572ddd6f532c11 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -405,7 +405,7 @@ EXPORT void CALL ControllerCommand(int Control, unsigned char *Command)
 #if SDL_VERSION_ATLEAST(2,0,0)
                 if(dwAddress == PAK_IO_RUMBLE && controller[Control].event_joystick) {
                     if (*Data) {
-                        SDL_HapticRumblePlay(controller[Control].event_joystick, 1, SDL_HAPTIC_INFINITY);
+                        SDL_HapticRumblePlay(controller[Control].event_joystick, 1, 0x7fff);
                     } else {
                         SDL_HapticRumbleStop(controller[Control].event_joystick);
                     }