dinput: Fix joystick axis remapping.
This commit is contained in:
parent
a39dec21e2
commit
176c567cb3
@ -763,7 +763,7 @@ static void joy_polldev(JoystickImpl *This) {
|
|||||||
|
|
||||||
if (number < 12)
|
if (number < 12)
|
||||||
{
|
{
|
||||||
inst_id = DIDFT_MAKEINSTANCE(jse.number) | (number < 8 ? DIDFT_ABSAXIS : DIDFT_POV);
|
inst_id = DIDFT_MAKEINSTANCE(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 */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user