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.
Before you start
Section titled “Before you start”- 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.
Preview and apply
Section titled “Preview and apply”- In Studio, open Hardware → Review cabinet controls.
- Expand Emulator settings · MAME.
- Select Preview MAME settings. This reads and plans the change; it does not write the file.
- Check Target. It should be the intended cabinet installation’s
emulators\mame\cfg\default.cfg. - Read the summary, warnings, backup plan and listed input mappings.
- 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.
- Select Apply these MAME settings when the preview allows it.
- Wait for the success message. Note the target and any backup path, then start MAME and test the controls.
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.
What this step maps
Section titled “What this step maps”Only captured Keyboard sources are used by this panel.
| Captured function | MAME mapping |
|---|---|
| Up, Down, Left, Right | That player’s joystick directions |
| Button 1–16 | That player’s numbered play buttons |
| Start | That player’s Start input |
| Coin | That player’s Coin input |
| Player 1 Service | Service 1 |
| Player 1 Select, Pause, Menu, Exit | MAME 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.
If the preview or apply is blocked
Section titled “If the preview or apply is blocked”| Message or symptom | Next step |
|---|---|
| The MAME panel is disabled | Finish setup and accept the current saved controls. |
| No confirmed keyboard controls | This export needs supported keyboard-encoder bindings. Use the appropriate controller or emulator workflow for other devices. |
| RetroBat root not found, or wrong target | Resolve the cabinet’s RetroBat installation before writing. See the configuration note below. |
| Existing file needs confirmation | Inspect 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 parsed | Check the target file and the cabinet Windows account’s access. Do not bypass the reported blocker. |
| Controls, file or target changed after preview | Accept the updated controls if needed, then generate and review a fresh preview. The stale preview is deliberately rejected. |
| MAME still uses old controls | Restart MAME. Check that the launched MAME uses the target shown in the preview and review any game-specific input settings. |
If RetroBat is not detected
Section titled “If RetroBat is not detected”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.
Restore a backup
Section titled “Restore a backup”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.
