madman37287 / KevBoy

0 stars 0 forks source link

RPi 5 Specific Issue: Sync Dolphin controls to retroarch #26

Open madman37287 opened 4 weeks ago

madman37287 commented 4 weeks ago

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.

madman37287 commented 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

madman37287 commented 4 weeks ago

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.

madman37287 commented 3 weeks ago

controls live in /opt/retropie/configs/gc/Config/

madman37287 commented 3 weeks ago

specific file is GCPadNew.ini

madman37287 commented 3 weeks ago

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.

madman37287 commented 3 weeks ago

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.