Commit 17839bab authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: Use correct flag for object instance.

DIDFT_AXIS is a generic mask for absolute and relative axes.
parent 10fca47b
...@@ -829,7 +829,7 @@ static void joy_polldev(JoystickImpl *This) { ...@@ -829,7 +829,7 @@ static void joy_polldev(JoystickImpl *This) {
if (number < 12) if (number < 12)
{ {
inst_id = DIDFT_MAKEINSTANCE(jse.number) | (number < 8 ? DIDFT_AXIS : DIDFT_POV); inst_id = DIDFT_MAKEINSTANCE(jse.number) | (number < 8 ? DIDFT_ABSAXIS : DIDFT_POV);
value = map_axis(This, jse.value, number); value = map_axis(This, jse.value, number);
/* FIXME do deadzone and saturation here */ /* FIXME do deadzone and saturation here */
......
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