KEYCODE_LCONTROL OR JOYCODE_1_BUTTON1 OR MOUSECODE_1_BUTTON1 You can now open up a controller file to have a look. You won't see anything there until you change the Files of Type option to all files. Find your MAME/MameUI folder and open the ctrlr folder. Open it up and in the file menu select open. You'll find notepad in the Start -> All Programs -> Accessories menu. cfg file normally doesn't have a default application to open it and if you have MS Outlook it'll default to that (which is a pain!), You'll need to open it in Notepad to edit a.
You will see the XML files for the controllers which are saved with a. It will look something like this.Īs you can see the configurations are now held in files not folders. (Note: make sure that you delete any and commands that may be copied) This saves trying to work out the names for your controllers function and writing all those lines of code. What you can do is open the config file (named gamename.cfg) and copy / paste the changed keys into your controller config file. Exit the game and Mame will save a config file in the cfg folder in your Mame folder. to save time you can load the game you want to remap into MAME, remap the controls in the in-game menu (press tab and go to Input (this game)). Here's a little shortcut for all of you not brave enough to read the whole section (Head Hurt Already?) O.K. MAME config files use XML and so are not for the beginner but are incredibly useful if you have special controllers.
You can even make specific controller config files that work exclusively on individual games or systems. If you consider that you can get up to 14 buttons on a controller, multiple sticks and dpads, you can configure each one to do something in MAME. The controller specific config files are designed so that you can configure the abundance of controllers available on the market to work with MAME.