Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: papaschtroumpf on October 31, 2004, 12:26:33 am
-
I really need an RETURN key on my panel because too many PC games require it but I'm out of keys, so I figured I would remap the 1 key to the RETURN key on my keyWiz.
I figured out the mamewah CTRLR file so I can get mamewah to use the ENTER key instead of the 1 key.
I'm not sure what the right way to do it is in MAME: do I simply go in the TAB menu then change default input for player 1 to ENTER instead of 1?
Do I need to change my CTRLR file?
I'm still really fuzzy on what CTRLR files really do.
-
You could use the tab menu.
The ctrlr files are another way to map control for mame. I prefer them because you can't do stupid stuff by mistake, like remap the tab menu to esc which can be done easily without realizing it. Also if you use a viewer like Johnny5, Johnny5 will compare your ctrlr file mappings to controls.dat and show the correct labels for your setup.
However, the ctrlr files have become a little tougher for the newbie to edit. The best way to edit is read how to make the ctrlr files using the old method (available on mameworld's easy emu site) and use HowardC's conversion utility.
-
I really need an RETURN key on my panel because too many PC games require it but I'm out of keys, so I figured I would remap the 1 key to the RETURN key on my keyWiz.
I figured out the mamewah CTRLR file so I can get mamewah to use the ENTER key instead of the 1 key.
I'm not sure what the right way to do it is in MAME: do I simply go in the TAB menu then change default input for player 1 to ENTER instead of 1?
Do I need to change my CTRLR file?
I'm still really fuzzy on what CTRLR files really do.
In the ctrlr file, "ports" are the various mame functions, like P1_JOYSTICK_LEFT, etc, and "keycodes" are what keycode your buttons generate.
Edit the "default" section of your ctrlr file and look for these lines:
<port type="START1">
<newseq type="standard">KEYCODE_1</newseq>
</port>
"<port" is a XML tag for start the port description, and "</port>" means to end the port description. These three lines tell MAME to perform the START1 MAME function whenever KEYCODE_1 is pressed.
In your case, you'll want to change KEYCODE_1 to KEYCODE_ENTER. Or you could change it to KEYCODE_1 OR KEYCODE_ENTER to have either enter or 1 be the player 1 start button.
IMO the XML files are a huge improvement and you shouldn't even bother with the old-style ctrlr files. But, use whatever you feel most comfortable with.
I would not change the controls within MAME. It's too easy to mess things up and you'll lose your definitions if you reinstall a new version of MAME if a different directory.
HTH,
Buddabing
-
that makes sens, I like the idea of defining it with the OR statement so that the default keys still work.
I will also remap my Pause key this way since it's currently remapped from the Tab menu (the KeyWiz doesn't make the letter P available by default)
I assume all I need to do is the following:
<port type="UI_PAUSE">
<newseq type="standard">KEYCODE_Q OR KEYCODE_P</newseq>
</port>
The letter Q is already used for something else by MAME (don't remember what, don't use it), so does my definition take precedence over the exsting MAME definition?
-
that makes sens, I like the idea of defining it with the OR statement so that the default keys still work.
I will also remap my Pause key this way since it's currently remapped from the Tab menu (the KeyWiz doesn't make the letter P available by default)
I assume all I need to do is the following:
-
IMO the XML files are a huge improvement and you shouldn't even bother with the old-style ctrlr files. But, use whatever you feel most comfortable with.
True, but the old way kept things seperate, which to me was easier. I have a neogeo.ini, 6button.ini and a couple of others.
Witht he new xml stuff all that gets put into one file and you have to put it in the right order. That seems like it is more trouble than it is worth.