Skip to content

How keyboard controls reach RetroArch games

A cabinet button connected through a keyboard encoder sends a keyboard signal. The game function depends on the mappings that receive it. A button labelled Start does not automatically send a game’s default Start key.

For MAME 2003-Plus using its RetroPad input interface, a keyboard binding follows this path:

Physical cabinet button
→ keyboard encoder sends a physical key
→ RetroArch keyboard binding selects a RetroPad button
→ MAME 2003-Plus receives that player's Start or Coin input
→ game responds

RetroPad is RetroArch’s common controller layout. A keyboard can supply its buttons; this does not require a physical Xbox controller or a virtual Xbox device.

For example, physical key 4 can supply Player 1 Start. It does not have to remain Player 4 Start just because that is a default in MAME’s direct keyboard mapping.

RetroArch uses specific text tokens for keyboard bindings. These examples explain generated configuration; use the cabinet setup workflow to change your assigned controls.

Physical keyRetroArch tokenExample purpose
Top-row 4num4Player 1 Start
Numpad 4keypad4A separate physical key
Top-row 7, 8, 9num7, num8, num9Play buttons
TtAny assigned button
SpacespaceAny assigned button
Key at scan position 0x29backquoteCoin on some encoders

In RetroArch 1.20.0, a bare digit such as "4" is not a valid keyboard token. The top row uses num0 through num9; numpad keys use keypad0 through keypad9.

The printed character can differ with the keyboard layout. For example, the physical key represented by backquote can print § on a Swedish layout. ArcadeStudio’s mapper uses the captured physical scan code rather than guessing from that printed character.

This explains how Coin can work while Start fails: each binding is parsed separately. One valid token does not prove that every other binding is valid.

MAME defaults and RetroPad are different paths

Section titled “MAME defaults and RetroPad are different paths”

MAME’s direct keyboard defaults normally include 1 for Player 1 Start and 5 for Coin. With MAME 2003-Plus set to retropad, use the keyboard keys assigned to RetroArch’s RetroPad Start and Select buttons. Pressing 1 is not an automatic fallback.

The core’s simultaneous mode enables both RetroPad and direct keyboard input. It does not mean “separate keyboards for separate players.” Check which mode is active before comparing two installations.

The MAME settings guide describes the separate standalone MAME export. Its target file does not configure a RetroArch MAME core.

LayerWhat to inspect
RetroArch configuration and overridesPhysical keyboard bindings, hotkeys and drivers
Core, directory or game remaps (.rmp)RetroPad button functions and player ports
Core options, including game-specific options (.opt)The core’s input interface and other options
MAME input settingsWhich input signals activate each game function

A launch command without --appendconfig does not rule out automatically loaded overrides or remaps. A file on disk also does not by itself prove the current in-memory setting.

Check a button without disturbing working controls

Section titled “Check a button without disturbing working controls”
  1. Confirm the physical button produces the expected key outside the game.
  2. Check the active cabinet assignment and the generated RetroArch token for that function.
  3. Compare the failing button with a working one, such as Coin. Check remaps and hotkey conflicts for the failing function.
  4. Confirm the running core and input interface. Test in the game, then repeat a normal game launch.

Avoid editing managed configuration while the game is running: launch preparation and restoration can replace those files. Keep a working spinner’s movement settings unchanged while investigating a button. Mouse movement and Start/Coin are separate input signals; neither proves the other is configured correctly.

Unusual media, browser or function keys may be unsupported by the current ArcadeStudio mapper even when RetroArch recognizes their names. A recognized token is also not a guarantee that a particular encoder produces the expected physical signal.

Further reading: RetroArch keyboard token table and MAME 2003-Plus input interfaces.

Beta 2 includes server-owned RetroArch launch preparation and recovery. This page describes the keyboard-to-RetroPad path; see Releases for the release’s runtime scope and limitations.