Hello !
I just have successfully installed libretro Dolphin core on my RetroPie x86-based arcade machine.
As you can see on the picture, the controls are 2 arcade sticks + buttons. By default, the Dolphin core seems to map Retroarch controllers as Emulated Wiimotes.
I tried to start Mario Kart Wii, and it doesn’t works, my controllers have no effect on the game.
I remembered that on my PC, using a SNES controler, I was only able to play by mapping it in Dolphin as a Classic Controler extension. Then, on my Arcade, I had to patch the following function: retro_set_controller_port_device().
I appended at the begining:
device = RETRO_DEVICE_WIIMOTE_CC;
Then, I have rebuilt the core with this change, and everything is now working well: the libretro generated WiimoteNew.ini is using Classic Controller settings as expected, and Mario Kart Wii is perfectly usable with my arcade sticks.
My question: how to force my controllers to be mapped as RETRO_DEVICE_WIIMOTE_CC by default, without patching the Dolphin core?
I mean, I expect the device argument of the retro_set_controller_port_device() function to be what I need in my case: RETRO_DEVICE_WIIMOTE_CC. I suppose there is a way to configure retroarch with this setting for Dolphin core, but I have not found how to do it.
Best regards, and thank you for your help