https://bugs.winehq.org/show_bug.cgi?id=48799
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #5 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
I found this in git/dlls/winejoystick.drv/joystick_{linux,osx}.c:
--- code --- /* complete 95 structure */ caps->wRmin = 0; caps->wRmax = 0xFFFF; caps->wUmin = 0; caps->wUmax = 0xFFFF; caps->wVmin = 0; caps->wVmax = 0xFFFF; caps->wMaxAxes = 6; /* same as MS Joystick Driver */ caps->wNumAxes = 0; caps->wMaxButtons = 32; /* same as MS Joystick Driver */ caps->szRegKey[0] = 0; caps->szOEMVxD[0] = 0; caps->wCaps = 0; --- end code ---
I have no expertise in joystick code, but I think the default behavior is to wrap the extra buttons/axes around. I don't know what will happen if this was patched to 10 axes and 40 buttons.
Wine should not crash, though, so if it does, please attach a WINEDEBUG=+joystick,+dinput,+xinput debug trace. Instructions to get a debug trace can be found at point 10.1.2 there: https://wiki.winehq.org/FAQ#get_log
Regards.