dinput: fix joystick axis remapping

Erik Inge Bolsø knan-wine at anduin.net
Wed Aug 1 15:19:45 CDT 2007


Without this, joystick axis remapping from the Wine registry,
as documented on http://wiki.winehq.org/UsefulRegistryKeys,
does not work in Star Wars Galaxies.
---
 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 */
 
-- 
1.5.2.3



More information about the wine-patches mailing list