Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button and Axis mappings are too easy to get lost #105

Open
arithex opened this issue Aug 5, 2023 · 0 comments
Open

Button and Axis mappings are too easy to get lost #105

arithex opened this issue Aug 5, 2023 · 0 comments

Comments

@arithex
Copy link
Collaborator

arithex commented Aug 5, 2023

from https://forum.falcon-bms.com/topic/25538/button-mapping-gets-lost-4-37

It looks like, the way AL identifies each device, when saving its XML files, is different than the way BMS does… AL is using the “device instance guid” from the OS (or is this something made up by DirectInput?) … which is subject to change when devices are unplugged/replugged into different USB ports.

BMS uses the “productId+vendorId” which is obviously much more stable… but can be ambiguous if you have 2+ of same device.

Here's the fix I'd propose:

1- continue writing the XML files with deviceInstanceGuid, as today

2- also write same XML file, named with the "pidvid" id (as written to DeviceSorting.txt) .. maybe also append a zero-based index num

3- upon startup.. if a particular deviceInstanceGuid XML file is not found -- try to look for a "{devicePidVid}{indexNum}.xml" file, and load that

4- lastly, if no suitable savefiles are found, look for a matching stock-template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant