Rémi Bernon : dinput: Count all HID joystick button objects.
Alexandre Julliard
julliard at winehq.org
Thu Sep 23 15:35:05 CDT 2021
Module: wine
Branch: master
Commit: a12b2dec4f8e3329a32b60b6bc1926421c1e0b57
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a12b2dec4f8e3329a32b60b6bc1926421c1e0b57
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Thu Sep 23 10:51:39 2021 +0200
dinput: Count all HID joystick button objects.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dinput/joystick_hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dinput/joystick_hid.c b/dlls/dinput/joystick_hid.c
index 11c23cfd58f..051ad743cde 100644
--- a/dlls/dinput/joystick_hid.c
+++ b/dlls/dinput/joystick_hid.c
@@ -1199,7 +1199,7 @@ static BOOL init_objects( struct hid_joystick *impl, struct hid_caps *caps,
DIDATAFORMAT *format = impl->base.data_format.wine_df;
format->dwNumObjs++;
- if (instance->dwType & DIDFT_PSHBUTTON) impl->dev_caps.dwButtons++;
+ if (instance->dwType & DIDFT_BUTTON) impl->dev_caps.dwButtons++;
if (instance->dwType & DIDFT_AXIS) impl->dev_caps.dwAxes++;
if (instance->dwType & DIDFT_POV) impl->dev_caps.dwPOVs++;
More information about the wine-cvs
mailing list