https://bugs.winehq.org/show_bug.cgi?id=35815
--- Comment #7 from winetest@luukku.com --- (In reply to Andrew Church from comment #6)
Created attachment 55194 [details] joystick-button-map.diff
Updated patch for wine-1.9.15
patching file dlls/dinput/joystick.c Hunk #1 succeeded at 961 (offset 14 lines). patching file dlls/dinput/joystick_linux.c Hunk #1 succeeded at 786 (offset 82 lines). patching file dlls/dinput/joystick_linuxinput.c Hunk #1 succeeded at 841 (offset 37 lines). patching file dlls/dinput/joystick_osx.c Hunk #1 succeeded at 803 (offset 42 lines). patching file dlls/dinput/joystick_private.h
against wine 1.9.20-git.
You should send your patch to wine-patches list for review. So it could be at somepoint merged into wine. This bug report should contain patch word so it would be easier to find this.