[mupen64plus-input-sdl] 156/196: Add workaround for missing rumble with xboxdrv
Sven Eckelmann
ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:00:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
ecsv-guest pushed a commit to branch master
in repository mupen64plus-input-sdl.
commit f26d97e5014af611ffa5aa98cd338fd9e6736c5c
Author: Sven Eckelmann <sven at narfation.org>
Date: Sat Aug 31 13:28:04 2013 +0200
Add workaround for missing rumble with xboxdrv
---
debian/changelog | 8 ++++++++
debian/patches/series | 1 +
debian/patches/xboxdrv_rumble_war.patch | 17 +++++++++++++++++
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 32e9a3e..f92cef4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mupen64plus-input-sdl (2.0-2) UNRELEASED; urgency=low
+
+ * debian/patches:
+ - Add xboxdrv_rumble_war.patch, Add workaround for missing rumble with
+ xboxdrv
+
+ -- Sven Eckelmann <sven at narfation.org> Sat, 31 Aug 2013 13:27:25 +0200
+
mupen64plus-input-sdl (2.0-1) unstable; urgency=low
* New Upstream Version
diff --git a/debian/patches/series b/debian/patches/series
index 33f561e..92c57a5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
sdl2_forcefeedback.patch
sdl2_keysym.patch
sdl2_mousemode.patch
+xboxdrv_rumble_war.patch
diff --git a/debian/patches/xboxdrv_rumble_war.patch b/debian/patches/xboxdrv_rumble_war.patch
new file mode 100644
index 0000000..5b2ddc6
--- /dev/null
+++ b/debian/patches/xboxdrv_rumble_war.patch
@@ -0,0 +1,17 @@
+Description: Add workaround for missing rumble with xboxdrv
+Author: Sven Eckelmann <sven at 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);
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-input-sdl.git
More information about the Pkg-games-commits
mailing list