Dolphin controller mapping
Overview
GameCube and Wii games use the controller in very different ways: GameCube controller, Wiimote held upright or sideways, Nunchuk, Classic Controller… RetroBat sets up Dolphin automatically, but some cases need a specific setup.
This page explains two things:
how to get a specific controller or adapter recognized, with the
GCControllers.jsonfile;how to use your own Dolphin controller profile for a game.
Automatic configuration
RetroBat configures controllers at each launch. The settings are in the advanced system options, CONTROLS submenu:
GameCube: FACE BUTTON LAYOUT and PLAYER 1 CONTROLLER TYPE (to 4). See the GameCube page.

Wii: WIIMOTE TYPE and EMULATED DEVICES, to choose how the Wiimote is held, and real Wiimotes with a DolphinBar. See the Wii page.

In most cases, these options are enough.
Specific controllers and adapters (GCControllers.json)
Some GameCube controller adapters, for example those from Mayflash or raphnet, show up in Windows as an ordinary gamepad. Their buttons are then not in the right place with the automatic configuration.
The GCControllers.json file gives RetroBat the exact mapping of these adapters. RetroBat recognizes the adapter by its identifier (GUID) and applies this mapping instead of the automatic configuration.
RetroBat ships this file in system\resources\inputmapping, with two adapters: MAYFLASH GameCube Controller Adapter and raphnet technologies Dual Gamecube to USB v3.6.
For an adapter that works with the Zadig driver and the Dolphin GAMECUBE ADAPTER mode, this file is not needed: see the GameCube page.
Adding an adapter
Copy
GCControllers.jsonfromsystem\resources\inputmappingtouser\inputmapping. Your copy then fully replaces the RetroBat file: keep the existing adapters in it.Add an entry for your adapter, following the model of the entries in the file:
Emulator
dolphin for Dolphin, libretro for lr-dolphin.
Name
Exact name of the adapter as Dolphin shows it in its device list. RetroBat uses it to point Dolphin to the device: an approximate name does not work.
Guid
Identifier of the adapter (see below).
Driver
Dolphin driver to use: SDL (default), DInput…
Mapping
The lines to write in GCPadNew.ini for this port.
HotKeyMapping
The Dolphin hotkeys to write in Hotkeys.ini, when the adapter is used by player 1. They then replace the RetroBat hotkeys.
ControllerInfo
needActivationSwitch: true so that the mapping only applies when the USE GAMECUBE-LIKE CONTROLLER option is on, false so that it always applies.
With Dolphin, the ControllerInfo field must be present, as well as HotKeyMapping for the player 1 adapter: otherwise the mapping is not applied.
Finding the GUID and the mapping
The GUID: start a GameCube game with the adapter plugged in, then open the emulationstation\emulatorLauncher.log file. Look for the Checking specific Gamecube mapping for controller line: the GUID is at the end of this line.
The mapping: set up the adapter once by hand in Dolphin.
Turn off AUTOCONFIGURE CONTROLLERS for the GameCube system.
Run
Dolphin.exefrom theemulators\dolphin-emufolder.Open Controllers, choose Standard Controller for port 1, then Configure.
Choose the adapter in the Device list and set each button.
Close Dolphin and open
emulators\dolphin-emu\User\Config\GCPadNew.ini: the[GCPad1]section holds the lines to copy intoMapping, and theDeviceline gives the driver and the exact name (DInput/0/MAYFLASH GameCube Controller Adapter).Turn AUTOCONFIGURE CONTROLLERS back on.

Per-game controller profile
A Dolphin profile is a complete controller setup, saved under a name. Linked to a game, it replaces the RetroBat configuration for that game only. This is useful for a game that needs a very specific setup.
This method only works with Dolphin, not with lr-dolphin.
Step 1: create the profile
Run
Dolphin.exefrom theemulators\dolphin-emufolder.Open Controllers, then Configure next to the port to set up:
GameCube Controllers for a GameCube game;
Wii Remotes (emulated Wiimote) for a Wii game.

Choose your controller in the Device list and set the buttons.
In the Profile area, type a name, for example
Mario Kart DD, then click Save.

The profile keeps the controller chosen in Device. It will only work with this controller.
Step 2: link the profile to the game
Still in Dolphin, right-click the game in the list, then Properties.

Open the Game Config tab, then Editor.
In the User Config area, add:
PadProfile1 to PadProfile4
GameCube controller of player 1 to 4
WiimoteProfile1 to WiimoteProfile4
Wiimote of player 1 to 4
The name after the = sign must be exactly the one from step 1.

Close Dolphin. The profile is loaded each time the game is started from RetroBat.
Dolphin saves this setting in emulators\dolphin-emu\User\GameSettings\<game ID>.ini, for example GALE01.ini for Super Smash Bros. Melee. To go back to the RetroBat configuration, remove the [Controls] section from this file.
Folders
Adapter file shipped with RetroBat
system\resources\inputmapping\GCControllers.json
Your adapter file
user\inputmapping\GCControllers.json
Controller settings written by RetroBat
emulators\dolphin-emu\User\Config\GCPadNew.ini (GameCube), WiimoteNew.ini (Wii), Hotkeys.ini (hotkeys)
GameCube profiles
emulators\dolphin-emu\User\Config\Profiles\GCPad
Wiimote profiles
emulators\dolphin-emu\User\Config\Profiles\Wiimote
Per-game settings
emulators\dolphin-emu\User\GameSettings
RetroBat log (controller GUIDs)
emulationstation\emulatorLauncher.log
Known issues
My settings made in Dolphin disappear at the next launch
RetroBat rewrites GCPadNew.ini and WiimoteNew.ini at each launch. Use a per-game profile, or turn off AUTOCONFIGURE CONTROLLERS.
My profile is not loaded
Check that the name in [Controls] is identical to the profile name, and that the profile was created with the controller you are using.
A game no longer follows some RetroBat options
The <game ID>.ini file in emulators\dolphin-emu\User\GameSettings can replace other settings than controllers. Remove the lines concerned from it.
My adapter is not recognized
Check the GUID in emulatorLauncher.log and the exact name in Dolphin. If needActivationSwitch is true, turn on USE GAMECUBE-LIKE CONTROLLER.
Mis à jour
Ce contenu vous a-t-il été utile ?
