Aller au contenu
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.json file;

  • 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

  1. Copy GCControllers.json from system\resources\inputmapping to user\inputmapping. Your copy then fully replaces the RetroBat file: keep the existing adapters in it.

  2. Add an entry for your adapter, following the model of the entries in the file:

Field
Content

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.

  1. Turn off AUTOCONFIGURE CONTROLLERS for the GameCube system.

  2. Run Dolphin.exe from the emulators\dolphin-emu folder.

  3. Open Controllers, choose Standard Controller for port 1, then Configure.

  4. Choose the adapter in the Device list and set each button.

  5. Close Dolphin and open emulators\dolphin-emu\User\Config\GCPadNew.ini: the [GCPad1] section holds the lines to copy into Mapping, and the Device line gives the driver and the exact name (DInput/0/MAYFLASH GameCube Controller Adapter).

  6. 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

  1. Run Dolphin.exe from the emulators\dolphin-emu folder.

  2. 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.

  1. Choose your controller in the Device list and set the buttons.

  2. 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.

  1. Still in Dolphin, right-click the game in the list, then Properties.

  1. Open the Game Config tab, then Editor.

  2. In the User Config area, add:

Line
For

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.

  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

Content
Folder

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

Issue
Solution

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 ?