dinput: Use correct flag for object instance.
DIDFT_AXIS is a generic mask for absolute and relative axes.
This commit is contained in:
parent
10fca47ba4
commit
17839bab6c
|
@ -829,7 +829,7 @@ static void joy_polldev(JoystickImpl *This) {
|
|||
|
||||
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);
|
||||
/* FIXME do deadzone and saturation here */
|
||||
|
||||
|
|
Loading…
Reference in New Issue