EmulationStation
EmulationStation copied to clipboard
XInput devices under windows all have the same deviceGUID saved into es_input.cfg
Looking at the es_input.cfg file after having setup a new controller in es, all XInput devices under windows have a guid which is just a hex representation of the word "xinput"
I understand this is a default for xinput devices under SDL on Windows, however it means it's impossible to match the config to a specific controller if you want to remap the controls under retroarch (as you can't get the pid/vid combo)
Is it possible to maybe grab the vid and pid separately and write them to their own attributes in the input part of the xml, along side the deviceGUID?
There is a ticket for this at RetroPie-Setup - I doubt this will be fixed any time soon.
https://github.com/RetroPie/RetroPie-Setup/issues/1798
well for windows at least I've written a quick c# command line app which accepts the es guid and device name and tries to match it against currently connected controllers to return the pid/ vid. I've put it up here https://github.com/Shawson/ESGamePadDetect incase it's of any use to anyone else.