From ffdea40f2cb5505c6f0ce7e976c47b07adfb75d6 Mon Sep 17 00:00:00 2001 From: Christoph Frick Date: Mon, 15 Jan 2007 12:09:06 +0100 Subject: [PATCH] dinput: No longer check for value exceeding have(min|max) in map_axis. --- dlls/dinput/joystick_linuxinput.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index db512364ee8..1f98d6dfb47 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -587,9 +587,6 @@ map_axis(JoystickImpl* This, int axis, int val) { int wmax = This->props[axis].wantmax; int ret; - if (val > hmax) This->props[axis].havemax = hmax = val; - if (val < hmin) This->props[axis].havemin = hmin = val; - /* map the value from the hmin-hmax range into the wmin-wmax range */ ret = MulDiv( val - hmin, wmax - wmin, hmax - hmin ) + wmin;