https://bugs.winehq.org/show_bug.cgi?id=46850
Bug ID: 46850 Summary: joystick buttons not mapped correctly Product: Wine-staging Version: 4.4 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mickski56@hotmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
0001-dinput-Allow-remapping-of-joystick-buttons.patch
defines MAX_MAP_BUTTONS 16
Sony dualshock3 has 17 buttons leading to dpad right and X button both producing button 1 when pressed.
Increasing MAX_MAP_BUTTONS to 17 resolves this although an arbitrarily larger number like 24 or 32 might be better.
plus the rest of the patch will want adjusting to accommodate however many buttons are defined as mappable.