Dolphin, the GameCube and Wii emulator - Forums
Advanced controller mapping - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Android (https://forums.dolphin-emu.org/Forum-android)
+--- Thread: Advanced controller mapping (/Thread-advanced-controller-mapping)



Advanced controller mapping - ssmith - 11-12-2021

I'm trying to do some advanced controller mapping, beyond what's supported in the GUI. I'm trying to make it so when you hold down a certain button, the main joystick will instead control the c-stick.

The problem is, when I go into the ini files and change them, nothing happens. I can go into the GUI and change something and the ini file updates with the change, but any changes I make don't do anything. It's as if dolphin is loading the game settings from somewhere else, but still updating the ini files with what's changed in the GUI.

Does anyone have any direction on this, or know what might be causing it?


RE: Advanced controller mapping - MayImilae - 11-12-2021

You don't need the INI files for that, you can set that up in the GUI. It's really easy in fact. Just make sure you are using the latest dev build.

So just set up the C-Stick as normal, so I'm assuming you have it set to the right stick. Then for the first direction (let's say UP), right click it and go into the advanced controls. There, add |OR, select your control button, then use AND and add your Left Stick UP. So to trigger up on the C-Stick, you can press up on the Right Stick, or hold the button and press up on the left stick.

There might be a little bit of weirdness with making sure the emulated control stick isn't also picking up the stick movements, but I don't have the time to sort that out for you atm. This Progress Report is a mean one. Hopefully someone else can pitch in if you encounter this. Otherwise I'll help in a few days.

EDIT: Oh. oh. Android. Well you can set this up on a desktop and pass the INI over. But if you want to do this entirely on your phone then things are going to be harder.


RE: Advanced controller mapping - JosJuice - 11-13-2021

(11-12-2021, 11:39 PM)MayImilae Wrote: EDIT: Oh. oh. Android. Well you can set this up on a desktop and pass the INI over. But if you want to do this entirely on your phone then things are going to be harder.

No, I'm afraid you can't. The controller system on Android is completely bonkers compared to on PC, and this kind of use is not officially supported.


RE: Advanced controller mapping - MayImilae - 11-13-2021

Ah, thanks. Oh well then.


RE: Advanced controller mapping - ssmith - 11-13-2021

So just to confirm, if you create it on desktop and then pass it over, it should work? The controller syntax isn't different?


RE: Advanced controller mapping - JosJuice - 11-13-2021

(11-13-2021, 06:58 AM)ssmith Wrote: So just to confirm, if you create it on desktop and then pass it over, it should work? The controller syntax isn't different?

Technically the syntax is the same, but Android has an extra layer of indirection and an extra second way of storing controller mappings that PC doesn't have. Simply copying over settings from the PC version of Dolphin won't work.


RE: Advanced controller mapping - ssmith - 01-19-2022

Hmm, does that mean there's no way to do advanced mappings on Android at the moment?


RE: Advanced controller mapping - JosJuice - 01-19-2022

There's no reasonable way to do advanced mappings on Android, at least. If you dig around enough you might find a horrible mess that technically can be tricked into doing things it was never supposed to do, but it's such a mess that I don't want to try to describe how to do it.

Hopefully it won't take too long until I've made some more progress on rewriting the controller code we use on Android...