From d168f1e8e50a447b000d49580e72829858810edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Thu, 21 Oct 2021 10:06:58 +0200 Subject: [PATCH] winebus.sys: Count all absolute axes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40658 Signed-off-by: RĂ©mi Bernon Signed-off-by: Alexandre Julliard --- dlls/winebus.sys/bus_udev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/winebus.sys/bus_udev.c b/dlls/winebus.sys/bus_udev.c index f0651a8e529..0ad63c4f77f 100644 --- a/dlls/winebus.sys/bus_udev.c +++ b/dlls/winebus.sys/bus_udev.c @@ -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; }