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:
Rémi Bernon 2021-10-21 10:06:58 +02:00 committed by Alexandre Julliard
parent 6295af0840
commit d168f1e8e5
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}