Dragu
A while ago someone mentioned a method to change the controller configuration of dolphin emulator, he found out, that worked and was saved permanently.
I don't remember who it was and were he wrote this (must be somerwhere on the discord) but fortunately I had copied his instructions and I just found this copy again!
to change dolphin controller configuration, navigate to:
/usr/lib/python2.7/site-packages/configgen/generators/dolphin
and edit this file:
dolphinControllers.py
I had just tried that with Gamecube. Because I was annoyed by the wrong button assignment there for a long time. Namely the buttons B and X (Gamecube controller) were swapped.
So i edited the file and changed this:
def generateControllerConfig_gamecube(playersControllers):
gamecubeMapping = {
'y': 'Buttons/X', 'b': 'Buttons/A',
'x': 'Buttons/Y', 'a': 'Buttons/B',
'r2': 'Buttons/Z', 'start': 'Buttons/Start',
'pageup': 'Triggers/L', 'pagedown': 'Triggers/R',
'up': 'D-Pad/Up', 'down': 'D-Pad/Down', 'left': 'D-Pad/Left', 'right': >
'joystick1up': 'Main Stick/Up', 'joystick1left': 'Main Stick/Left',
'joystick2up': 'C-Stick/Up', 'joystick2left': 'C-Stick/Left'
}
to this:
def generateControllerConfig_gamecube(playersControllers):
gamecubeMapping = {
'y': 'Buttons/B', 'b': 'Buttons/A',
'x': 'Buttons/Y', 'a': 'Buttons/X',
'r2': 'Buttons/Z', 'start': 'Buttons/Start',
'pageup': 'Triggers/L', 'pagedown': 'Triggers/R',
'up': 'D-Pad/Up', 'down': 'D-Pad/Down', 'left': 'D-Pad/Left', 'right': 'D-Pad/Right',
'joystick1up': 'Main Stick/Up', 'joystick1left': 'Main Stick/Left',
'joystick2up': 'C-Stick/Up', 'joystick2left': 'C-Stick/Left'
}
saved the file and tested with Mario Kart Double Dash!
And it worked 🙂 Now the button mapping is finally correct and i can brake with B (which is Y on a SNES-style controller or Square on a PS3-controller) and use items with X (which is A on a SNES-controller and Circle on a PS3-controller).
And this setting was also saved permanently (it does not change back to default after exit the game or reboot/shutdown and turn on the system again) 🙂