LogoLogo
Retrobat WebsiteForumGithub
English
English
  • Welcome!
  • Get Started
    • Prerequisites
    • Installation & First Startup
    • RetroBat Folder Structure
    • Adding a game
    • Running a game
    • Adding BIOS files
  • NAVIGATION
    • Navigation Keys
    • Hotkeys
    • System View and Game View
    • Main Menu
    • View Options
    • Game Options
    • Configuration of systems and games
    • Scraping & Metadata
    • Game Collections
  • Systems & Emulators
    • Arcade Guide
    • Supported Game Systems
      • Game Consoles
        • 3DO
        • Actionmax
        • Adventure Vision
        • Amstrad GX4000
        • APF MP-1000
        • Arcadia 2001
        • Atari (consoles)
          • Atari 2600
          • Atari 5200
          • Atari 7800
          • Atari XEGS
          • Jaguar
          • Jaguar CD
        • Bally Astrocade
        • Casio Loopy
        • Channel F
        • ColecoVision
        • Commodore (game consoles)
          • Amiga CDTV
          • Amiga CD32
        • Intellivision
        • Lowres NX
        • Microsoft (consoles)
          • Xbox
          • Xbox 360
        • NEC (consoles)
          • PC Engine/TurboGrafx-16
          • PC Engine CD-ROM/TurboGrafx-CD
          • SuperGrafx
          • PC-FX
        • Nintendo (game consoles)
          • Nintendo Entertainment System - Family Computer
          • Family Computer Disk System
          • NES 3D
          • Super Nintendo Entertainment System - Super Famicom
          • Satellaview
          • SuFami Turbo
          • Super NES MSU-1
          • Super Game Boy
          • Nintendo 64
          • Nintendo 64 Disk Drive
          • GameCube
          • Wii
          • WiiU
          • Switch
        • Philips CD-i
        • Odyssey²
        • Othello Multivision
        • PV-1000
        • Sega (game consoles)
          • SG-1000
          • Master System - Mark III
          • Megadrive - Genesis
          • Megadrive - Genesis (MSU)
          • Mega-CD - Sega-CD
          • Sega 32X
          • Saturn
          • Dreamcast
        • SNK (game consoles)
          • Neo Geo
          • Neo Geo CD
        • Sony (game consoles)
          • PlayStation
          • PlayStation 2
          • Playstation 3
          • Playstation 4
        • Super Cassette Vision
        • Super A'Can
        • Uzebox
        • VC4000
        • Vectrex
        • Vircon32
        • VTech
          • CreatiVision
          • V.Smile
      • Portable Game Consoles
        • Arduboy
        • Atari (portable game consoles)
          • Lynx
        • Gamate
        • Game.com
        • Game Pocket Computer
        • Game Master
        • Game & Watch
        • GP 32
        • LCD Games
        • Mega Duck
        • Nintendo (portable game consoles)
          • Game Boy
          • Game Boy MSU
          • Game Boy 2 players
          • Virtual Boy
          • Game Boy Color
          • Game Boy Color 2 players
          • Game Boy Advance
          • Game Boy Advance 2 players
          • Nintendo DS
          • Pokémon Mini
          • Nintendo 3DS
        • Nokia
          • N-Gage & Symbian
        • Sega (portable game consoles)
          • Game Gear
        • SNK (portable game consoles)
          • Neo Geo Pocket
          • Neo Geo Pocket Color
        • Sony (portable game consoles)
          • PlayStation Portable
          • PlayStation Vita
        • Supervision
        • Wonderswan
          • WonderSwan
          • WonderSwan Color
      • Home Computer
        • Acorn Computers
          • Archimedes
          • ATOM
          • BBC Micro
          • Electron
        • Amstrad CPC
        • Apple
          • Apple II
          • Apple IIGS
        • Atari (computers)
          • Atari 800
          • Atari ST
        • Camputers Lynx
        • Coleco Adam
        • Pegasus
        • Commodore (computers)
          • Commodore PET
          • Commodore VIC-20
          • Commodore 64
          • Commodore Plus/4
          • Commodore 128
          • Amiga 500
          • Amiga 1200
          • Amiga 4000
        • Dragon 32/64
        • Fujitsu
          • FM-7
          • FM-TOWNS
        • Mattel
          • Aquarius
        • Microsoft (computers)
          • MSX
          • MSX2
          • MSX2+
          • MSX turbo R
        • NEC (computers)
          • NEC PC-8800
          • NEC PC-9800
        • Oric Atmos
        • Philips
          • P2000t
          • VG5000µ
        • Sam Coupé
        • Sharp
          • Sharp X1
          • Sharp X68000
        • Sinclair Research
          • ZX 81
          • ZX Spectrum
        • SpectraVideo (SV-318)
        • Thomson - MO/TO
        • TI-99/4A
        • Tomy Tutor
        • TRS-80 Color Computer
      • Arcade
        • Atomiswave
        • Capcom Play Systems
          • CPS I
          • CPS II
          • CPS III
        • Cave CV1000
        • Final Burn Neo
        • Gaelco
        • HomeBrew MAME
        • Hyper Neo Geo 64
        • LaserDisc
        • MAME
        • Namco 246/256
        • SEGA
          • Sega Model 2
          • Sega Titan-Video
          • Sega Model 3
          • Sega NAOMI
          • Sega NAOMI 2
          • Sega Hikaru
          • Triforce
          • Sega Chihiro
        • TeknoParrot
        • Zinc
      • Game Engines
        • EasyRPG
        • GemRB
        • IKEMEN
        • Löve
        • Lutro
        • MUGEN
        • Open Beats Of Rage
        • Singe
        • Solarus
      • Pinball
        • Future Pinball
        • Pinball FX
        • Pinball FX2
        • Pinball FX3
        • Pinball M
        • Visual Pinball
        • Zaccaria Pinball
      • Others
        • Cannonball
        • Cave Story
        • CDogs
        • Commander Genius
        • DevilutionX
        • Dinothawr
        • Doom III
        • DOS
        • Duke Nukem 3D
        • Flash
        • GzDoom
        • Java ME
        • Karaoke
        • OpenGOAL
        • OpenJazz
        • Perfect Dark
        • Pico-8
        • Ports
        • PrBoom
        • Quake
        • Quake 2
        • Raze
        • REminiscence
        • Ship Of Harkinian
        • Starship
        • Sonic 3 AIR
        • Sonic Mania
        • Sonic Retro
        • Super Mario War
        • ScummVM
        • The Force Engine
        • Theme Hospital
        • TIC-80
        • Tomb Raider
        • TV Games
        • WASM-4
        • Windows
        • Wolfenstein 3D
  • Controllers
    • Supported Controllers
      • 🎮Gamepads
        • Special controllers
      • 🕹️Arcade Sticks
      • 🔫Lightguns
        • WiimoteGun
      • 🛞Wheels
      • ⌨️Keyboard
    • Controllers Configuration
    • Gun controls
    • Emulator specific controls mapping
      • Dolphin controller mapping
      • MAME64 controller mapping
      • Model2 controller mapping
      • RetroArch controller mapping
      • Teknoparrot controller mapping
    • Pad2Key
  • Advanced Features
    • Decorations (bezels)
    • Updates & Content Download
    • Kiosk and Kid mode
    • Save States
    • Retroachievements
    • Netplay
    • AI Translation Service
    • Batgui
    • retrobat.ini
    • Latency and blur reduction
    • Softpatching
  • TUTORIALS
    • Know issues & fixes
    • Symbolic links
    • Adding RetroArch Shader Sets to Retrobat
    • Customize Mega-Bezels
Powered by GitBook

Copyright The RetroBat Team 2019-2024

On this page
  • STEP 0 : Preliminary explanations
  • STEP 1 : Create controller mapping file in MAME
  • STEP 2 : Manage the cfg file
  • STEP 3 : Create a dedicated profile
  • STEP 4 : Select the controller profile in RetroBat

Was this helpful?

Export as PDF
  1. Controllers
  2. Emulator specific controls mapping

MAME64 controller mapping

PreviousDolphin controller mappingNextModel2 controller mapping

Last updated 1 year ago

Was this helpful?

MAME64 emulator is compatible natively with XInput controllers.

When using another type of controllers (or to simply use a specific mapping for a game), it is possible to perform a dedicated mapping within the emulator.

STEP 0 : Preliminary explanations

MAME standalone will read the controller configuration files in the following ordre of priority (from less priority to highest priority - meaning the last file found will override what is found before):

  1. Native controller configuration

  2. Default.cfg file located in \bios\mame\cfg folder

  3. Game specific config files located in \bios\mame\cfg folder

  4. Controller configuration file located in \saves\mame\ctrlr folder as per selection in RetroBat options

STEP 1 : Create controller mapping file in MAME

Run mame.exe, the executable is located in the emulators\mame folder of your RetroBat installation.

Click on "General Settings":

Select "Input Assignments"

Select the controls you want to assign:

  • User Interface section lets you map buttons to actions in the MAME Menu

  • Player X Controls allows you to map in-game controls

Map controls as you would like them:

When using left and right buttons (or keys), you can select whether to add a key to the same button or whether to reset the mapping for the control.

Once the mapping done, go back and click on "Save Settings":

A file name "default.cfg" has been saved in the \emulators\mame\cfg folder.

STEP 2 : Manage the cfg file

Open the default.cfg file and check the content:

The file has an xml format, the mapping that you have performed is located in the <input> section of the file.

In the example, the keyboard key "Q" has been assigned to the action "UI_MENU" that opens the MAME menu.

Finally, copy the default.cfg file in the \bios\mame\cfg folder of your installation : this will now be the default controller configuration.

STEP 3 : Create a dedicated profile

Proceed as explained in step 1, then rename the file to one of the following values:

  • custom1.cfg

  • custom2.cfg

  • custom3.cfg

  • ...

  • custom8.cfg

Move the file in the \saves\mame\ctrlr folder of your RetroBat installation:

You can also perform the mapping directly in the cfg file if you feel comfortable with xml document processing.

Additional information on the file structure can be found here:

STEP 4 : Select the controller profile in RetroBat

Ensure the MAME64 emulator is set as EMULATOR and navigate to the CONTROLS submenu:

Select the "CONTROLLER PROFILE" option and choose the profile used for the file that you have created:

RetroBat provides 8 custom profiles as well as the ability to use a per_game cfg file.

When using "per_game", the name of the file must match the name of the game file (without extension), for example name the file "wjammers.cfg" for the game file "wjammers.zip" (WindJammers).

Do not hesitate to share the files you have created with the RetroBat team if you have a general profile that can be shared with other users.

You can APPEND
Are clear and reset

From the MAME , press SELECT to open the menu and select "ADVANCED SYSTEM OPTIONS"

http://mirrors.arcadecontrols.com/easyemu/mameguidenew/mameguide-controlini.htm
https://docs.mamedev.org/advanced/ctrlr_config.html
View Options
Game view