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