Commit ffdea40f authored by Christoph Frick's avatar Christoph Frick Committed by Alexandre Julliard

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

parent f0b45141
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment