https://bugs.winehq.org/show_bug.cgi?id=38997
david.dljunk@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |david.dljunk@gmail.com
--- Comment #2 from david.dljunk@gmail.com --- (In reply to Tom from comment #1)
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
Hi, I just submitted a couple of patches to fix this in both dinput and winmm joystick controllers. It now sorts controllers by location ID which should remained stable over across boots & program launches. Which wine control/game controller test applet were you using?
https://source.winehq.org/patches/data/123721 https://source.winehq.org/patches/data/123724 https://source.winehq.org/patches/data/123722 https://source.winehq.org/patches/data/123723
It should be noted that for virtual joysticks, they may still be unordered amongst themselves if multiple virtual joysticks have the same location ID (e.g. 0).