Open madman37287 opened 4 weeks ago
To change controls currently, a mouse device needs to be connected. Although this is fine for debugging, this is not a viable solution in the long run
Now that I have thought about it for a second more, this does not even have to sync on retroarch config update. This could sync on game launch.
controls live in /opt/retropie/configs/gc/Config/
specific file is GCPadNew.ini
retroarch controller profiles live at /opt/retropie/configs/all/retroarch/autoconfig/
I have no idea what the numbers mean yet, but a guess would be that the numbers are tied to the ecode enermurations within the evdev virtual controller library.
pulling out our old friend, "/opt/retropie/configs/gc/emulators.cfg", you can actually populate a new field with a command. I believe it would be an almost trivial task to create a python script which syncs the controllers and then starts the game.
Because dolphin is an experimental package, retroarch controls do not natively tie to the dolphin emulator, resulting in some manual workarounds to set controls. I am pretty sure that dolphin stores controller setup in a random config file somewhere, to which I would imagine that Retroarch does the same. In theory, it should be possible to create an event that updates Dolphin's config whenever retroarch's config updates.