dinput: Map wheel, gas, and brake axes as well.
The axes wheel, gas, and brake are just differently named replacements for X, Y, and Z when using wheel-like joysticks. Make those accessible by remapping them to X, Y, and Z internally. Signed-off-by: Tim Schumacher <timschumi@gmx.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
905e7b0e2e
commit
1a6458bad8
|
@ -239,6 +239,14 @@ static INT find_joystick_devices(void)
|
||||||
joydev.dev_axes_map[j] = j;
|
joydev.dev_axes_map[j] = j;
|
||||||
found_axes++;
|
found_axes++;
|
||||||
}
|
}
|
||||||
|
else if (axes_map[j] <= 10)
|
||||||
|
{
|
||||||
|
/* Axes 8 through 10 are Wheel, Gas and Brake,
|
||||||
|
* remap to 0, 1 and 2
|
||||||
|
*/
|
||||||
|
joydev.dev_axes_map[j] = axes_map[j] - 8;
|
||||||
|
found_axes++;
|
||||||
|
}
|
||||||
else if (axes_map[j] == 16 ||
|
else if (axes_map[j] == 16 ||
|
||||||
axes_map[j] == 17)
|
axes_map[j] == 17)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue