https://bugs.winehq.org/show_bug.cgi?id=50066
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to winetest from comment #2)
(In reply to Alistair Leslie-Hughes from comment #1)
Fixed by https://github.com/wine-staging/wine-staging/commit/ 819539b19fc2f61dd365677b06d69e51012fb595
well that was an easy fix. but is that value based on any joystick?
No, its based off the button array size in the DIJOYSTATE2 structure that dinput uses.