From 176c567cb353b0608d6dd88f5eb28a3cede7ea7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Inge=20Bols=C3=B8?= Date: Wed, 1 Aug 2007 22:19:45 +0200 Subject: [PATCH] dinput: Fix joystick axis remapping. --- dlls/dinput/joystick_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 9bd423bf3d2..67cc4935f6e 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 */