Skip to content

Apply cabinet controls to MAME

Use this optional step after capturing and activating cabinet controls. It turns supported keyboard-encoder bindings into MAME defaults on the selected ArcadeServer.

  • Finish the control guide and select Accept and apply cabinet controls in Studio. Confirm Active revision.
  • Keep Studio connected to the intended cabinet with editing enabled.
  • Have the intended RetroBat installation available on the cabinet PC. This panel resolves MAME inside that installation.
  • Close MAME before changing its settings, then restart it after applying.
  1. In Studio, open Hardware → Review cabinet controls.
  2. Expand Emulator settings · MAME.
  3. Select Preview MAME settings. This reads and plans the change; it does not write the file.
  4. Check Target. It should be the intended cabinet installation’s emulators\mame\cfg\default.cfg.
  5. Read the summary, warnings, backup plan and listed input mappings.
  6. If an existing file is not managed by ArcadeStudio, review it before selecting Allow updating an existing MAME file (with backup). Changing this option generates a fresh preview.
  7. Select Apply these MAME settings when the preview allows it.
  8. Wait for the success message. Note the target and any backup path, then start MAME and test the controls.

Studio's MAME panel showing the resolved default.cfg target, a backup plan, keyboard mappings, and Apply these MAME settings.

Select the screenshot to view it at full size. Use the target path displayed for your cabinet. The checkbox is selected here to demonstrate updating an existing file with a backup.

The writer backs up an existing target before patching its matching input entries. Unrelated entries are retained. The XML preview shows the planned mappings, not a full copy of every setting already in your file.

A new file is created when no target exists. After a write attempt, generate a fresh preview before trying again.

Only captured Keyboard sources are used by this panel.

Captured functionMAME mapping
Up, Down, Left, RightThat player’s joystick directions
Button 1–16That player’s numbered play buttons
StartThat player’s Start input
CoinThat player’s Coin input
Player 1 ServiceService 1
Player 1 Select, Pause, Menu, ExitMAME UI Select, Pause, Menu and Cancel

Other named extras, non-keyboard controls and accessory movement are not automatically exported by this panel. Configure those through the relevant controller or emulator workflow.

Supported key translation includes letters, digits, numpad digits, F1–F12, arrow keys and common modifiers/control keys. If a captured key cannot be mapped, the preview reports it. Choose another encoder key or configure that input in MAME.

This writes MAME’s default configuration. It does not generate a per-game configuration or configure RetroArch, every MAME variant, or the frontend controls. Existing game-specific mappings may still need review in MAME.

Message or symptomNext step
The MAME panel is disabledFinish setup and accept the current saved controls.
No confirmed keyboard controlsThis export needs supported keyboard-encoder bindings. Use the appropriate controller or emulator workflow for other devices.
RetroBat root not found, or wrong targetResolve the cabinet’s RetroBat installation before writing. See the configuration note below.
Existing file needs confirmationInspect the target and backup plan, then select the existing-file checkbox only if this is the file you intend to update.
File cannot be read, backed up or parsedCheck the target file and the cabinet Windows account’s access. Do not bypass the reported blocker.
Controls, file or target changed after previewAccept the updated controls if needed, then generate and review a fresh preview. The stale preview is deliberately rejected.
MAME still uses old controlsRestart MAME. Check that the launched MAME uses the target shown in the preview and review any game-specific input settings.

ArcadeServer’s path resolver accepts an explicit ArcadeServer:RetroBat:Root configuration value or the ARCADESTUDIO_RETROBAT_ROOT environment variable on the cabinet. It also checks common RetroBat locations. An explicitly configured root takes priority; an invalid explicit root must be corrected.

If you use the environment variable, set it for the Windows account running ArcadeServer to the installation root, such as D:\RetroBat. Restart the ArcadeServer app and Host so they inherit the value, then preview again. If your installation already supplies an explicit root, update that value instead. The root must contain a recognizable RetroBat installation; a folder name alone is not enough.

Close MAME. Copy the backup shown in the successful apply result back to its original target path, replacing the changed file, then restart MAME. This restores the MAME file only; the captured and active control setup on ArcadeServer remains separate.

Next: Cabinet controls, Controllers or Controller runtime.

For RetroArch cores, see How keyboard controls reach RetroArch games. This page describes the standalone MAME export panel. Beta 2’s runtime integration is separate; see Releases for its scope. Exporting from this panel does not verify an adapter or actual game input.