Updated dinput-remap-joystick patchset

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50066
This commit is contained in:
Alistair Leslie-Hughes 2020-10-28 07:12:37 +11:00
parent bd2086ff97
commit 819539b19f

View File

@ -6,7 +6,7 @@ Subject: [PATCH] dinput: Allow remapping of joystick buttons
Changed
- Change the array to store the origial button.
- Remove lookup loops.
- Changed max Buttons to 32 to match DIJOYSTATE structure.
- Changed max Buttons to 128 to match DIJOYSTATE2 structure.
Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=35815
---
@ -119,7 +119,7 @@ index e758cac..4a382c2 100644
struct JoystickGenericImpl;
+/* Number of buttons for which to allow remapping */
+#define MAX_MAP_BUTTONS 32
+#define MAX_MAP_BUTTONS 128
+
typedef void joy_polldev_handler(LPDIRECTINPUTDEVICE8A iface);