winebus.sys: Count all absolute axes.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40658 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6295af0840
commit
d168f1e8e5
|
@ -581,10 +581,7 @@ static INT count_abs_axis(int device_fd)
|
|||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(absolute_usages); i++)
|
||||
if (test_bit(absbits, i) &&
|
||||
(absolute_usages[i].Usage >= HID_USAGE_GENERIC_X &&
|
||||
absolute_usages[i].Usage <= HID_USAGE_GENERIC_WHEEL))
|
||||
abs_count++;
|
||||
if (test_bit(absbits, i)) abs_count++;
|
||||
return abs_count;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue