WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 45 forks source link

Bug: vJoy Order Changed #461

Closed TheGoodIdeaFairy closed 1 year ago

TheGoodIdeaFairy commented 1 year ago

Note: I'm not exactly sure how to replicate this, but I'll provide as much detail as I can:

Brief: Upon adding a new vJoy device via the vJoy Config Mgr, the order of my existing vJoy devices changed to a seemingly random order in JG.

Detail: Device order did not change in the .xml when saved to a new file for examination. However, the GUID associated with vJoy 1, 2, etc, reordered within JG. The new order doesn't seem to be alphabetically by GUID, or any other particular order that I can identify. Profile previously had 9 total vJoy devices, one of which was assigned as an input device. The change in order occurred when the 10th was added and JG was started (JG was off while vJoy-10 was added). Device order had remained stable for months prior, during which vJoy devices had been occasionally added. Adding additional devices afterward did not cause this reordering to occur again.

If possible, I'd like to know what logic JG uses to determine the order of vJoy devices, and/or what module to find this logic, in order to adjust my .xml or the device settings in the vJoy Config Manager.

TheGoodIdeaFairy commented 1 year ago

Leaving here only for posterity: the issue lies with the behavior of vJoy itself. For some strange reason, the GUIDs shuffle when new devices are added. There doesn't appear to be much JG could do about this in its current form.