Erik Inge Bolsø : dinput: Fix joystick axis remapping.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 2 06:23:03 CDT 2007


Module: wine
Branch: master
Commit: 176c567cb353b0608d6dd88f5eb28a3cede7ea7b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=176c567cb353b0608d6dd88f5eb28a3cede7ea7b

Author: Erik Inge Bolsø <knan-wine at anduin.net>
Date:   Wed Aug  1 22:19:45 2007 +0200

dinput: Fix joystick axis remapping.

---

 dlls/dinput/joystick_linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c
index 9bd423b..67cc493 100644
--- a/dlls/dinput/joystick_linux.c
+++ b/dlls/dinput/joystick_linux.c
@@ -763,7 +763,7 @@ static void joy_polldev(JoystickImpl *This) {
 
             if (number < 12)
             {
-                inst_id = DIDFT_MAKEINSTANCE(jse.number) | (number < 8 ? DIDFT_ABSAXIS : DIDFT_POV);
+                inst_id = DIDFT_MAKEINSTANCE(number) | (number < 8 ? DIDFT_ABSAXIS : DIDFT_POV);
                 value = map_axis(This, jse.value, number);
                 /* FIXME do deadzone and saturation here */
 




More information about the wine-cvs mailing list