How to Map a Trackball and Spinner in MAME: Setup Guide

Stylized illustration of an arcade cabinet silhouette in deep red tones, with no logos or game art, evoking spinner.

This MAME trackball setup guide covers binding analog axes for Centipede and Tempest, tuning sensitivity, and checking the result with a quick in-game test.

A trackball and a spinner look similar on a control panel, but MAME treats them as different analog inputs, and a game built for one will feel broken with the other. Centipede and Marble Madness want a two-axis trackball that pushes a cursor around the screen; Tempest and Arkanoid want a single-axis dial or paddle that turns a claw or slides a bat. The setup is not hard, but it has a specific order: identify the control, confirm the device, enable the right input class, bind the axis, then tune it. I have done this on a USB spinner and a USB trackball, and the mistakes are almost always in the first two steps, not the binding itself. Everything below assumes a lawful personal backup of a board or disc you already own; no download links belong in this workflow.

Work out which control the game expects

Start from the original cabinet, not from the emulator. MAME names its analog inputs after the hardware: a two-axis trackball shows up as Trackball X and Trackball Y, while spinners, paddles and dials are one-axis inputs such as Dial or Paddle. If you assign a spinner to a trackball game, the cursor will only move along one line and the game becomes unplayable. The short driver name in the table below is what you pass to MAME on the command line, and it is also the name used for per-game config files.

Game Year Control MAME short name
Centipede 1981 Trackball, two axes centiped
Missile Command 1980 Trackball, two axes missile
Marble Madness 1984 Trackball, two axes marble
Tempest 1981 Spinner dial, one axis tempest
Arkanoid 1986 Spinner dial, one axis arkanoid
Tron 1982 Spinner dial, one axis tron
Pong 1972 Paddle, one axis pong

Confirm the operating system sees the device

Plug in the trackball or spinner and check it before MAME enters the picture. Most USB spinners and trackballs enumerate as a relative pointing device, so the desktop pointer moves when you roll the ball or flick the dial. On Windows the Game Controllers panel shows which HID device appeared; on Linux a tool such as evtest lists the event node and prints the relative axes. If the device presents as a joystick axis instead of a mouse, note that, because it changes the input class you enable next.

Enable mouse input in mame.ini

Relative pointing devices reach MAME through the mouse input class. Open mame.ini; if the file is missing, MAME writes a default one with the -cc option. Find the line that reads mouse and set it to 1, and do the same for joystick only if your device presents as a gamepad axis; the command-line equivalent is -mouse. Per-game overrides live in the ini folder as files such as ini/centiped.ini, and runtime settings go to the cfg folder as .cfg files. ROM sets stay in .zip archives, which MAME reads directly, so you do not extract them.

Bind the axis in Input (this game)

With the device enabled, launch one game and bind the control. The sequence below is the part worth following in order.

  1. Start MAME with the short name, for example mame centiped, and wait for the game to reach its attract screen.
  2. Press Tab to open the on-screen menu, then choose Input (this game). Recent builds group this under Input Settings, but the per-game assignment screen is the destination.
  3. Scroll to the analog line for the axis you want, such as Trackball X, Trackball Y, Dial or Paddle.
  4. Press Enter to begin the assignment, then move the physical control in the direction that should increase that axis. MAME captures the axis and shows the bound device next to the line.
  5. Repeat for the second axis on a trackball game, moving the ball vertically for the Y line.
  6. Use the menu clear control to unbind a wrong axis, then rebind it. Do not leave a keyboard or digital button assigned to an analog line.
  7. Exit the menu and test the control immediately, before saving anything.

Tune sensitivity, direction and wrap

A bound axis is rarely the final answer. Open the analog adjustment screen from the same Tab menu, the one many builds label Analog Input Adjustment, and change sensitivity until a comfortable movement covers the full in-game range. If the element moves the wrong way, reverse the axis or rebind in the opposite direction. A dial like Tempest wraps through a full rotation, while a paddle like Arkanoid has hard stops at both edges, so set wrap behavior to match the cabinet. Keep these changes in the per-game .ini file: ini/tempest.ini can hold a high sensitivity while ini/arkanoid.ini keeps a slower, precise one.

Save the layout and verify in game

Verification is concrete and quick. For a trackball game, roll the ball in a slow circle and watch the crosshair: in Centipede it should follow your hand smoothly with no jumps, and in Marble Madness the marble should roll steadily toward the direction you push. For a spinner, one firm flick on Tempest should spin the claw through a complete turn without a dead zone, and on Arkanoid the paddle should reach both walls with travel left over. Reopen Input (this game) and confirm the analog lines show your device rather than a keyboard key. Then let MAME write the settings to cfg and back up the per-game .ini files.

What goes wrong and how to spot it

Most failures are recognizable. No movement at all usually means mouse input is still disabled in mame.ini or the device is plugged into a hub the OS never registered. Movement on the wrong axis means X and Y are swapped; rebind them. Stepwise, jerky motion means a digital button was assigned to an analog line, so clear it and bind the true axis. A spinner that never reaches the screen edge is a sensitivity problem, while one that wraps when it should stop is a wrap setting. If two pointing devices are attached, MAME may combine their input, so test with only the device you intend to use connected and add the second one afterward. Once Centipede tracks cleanly and Tempest spins freely, the same two steps handle nearly every other analog game in the library, and the config files make the result repeatable.

Related reading

If you want to keep digging into this corner of the library, these two posts on Roms Get go a little further:

Similar Posts