dinput: No longer check for value exceeding have(min|max) in map_axis.

oldstable
Christoph Frick 2007-01-15 12:09:06 +01:00 committed by Alexandre Julliard
parent f0b45141c2
commit ffdea40f2c
1 changed files with 0 additions and 3 deletions

View File

@ -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;