https://bugs.winehq.org/show_bug.cgi?id=38997
--- Comment #1 from Tom spellbound42@gmx.de --- How to reproduce the bug easily: Connect 2 or more gamepads to a Mac(Book). Invoke wine control / game controller test applet several times. Symptom: "Joystick 0" is bound randomly to one of the connected devices.
Hint: I think this bug is OSX specific and related to input/joystick_osx.c