Just thought I would post an FYI for anyone interested that are creating their own ctrlr files (you should all be using ctrlr files).
I had a big problem where the P4 controls were not being included in mame which was discovered only on the weekend when some friends came over and we decided to play NBA JAM.
Things I had done previously:
I had remapped my whole panel using winipac. Each control was then tested using notepad to verify the controls had taken hold. I then created a ctrlr file in the old ini format. Then updated it to xml format using HowardC's converter. All went well ... or so I thought.
When running mame P1, P2 and P3 controls were all displayed correctly, but P4 controls were all set as "None".
After chatting on irc I used remapped those controls in game. Checked the games cfg file to see what was generated and automatically saw the problem.
I had KEYCODE_; but mame wants KEYCODE_COLON
so here's a quick list of things
KEYCODE_' = KEYCODE_QUOTE
KEYCODE_] = KEYCODE_CLOSEBRACE
KEYCODE_, = KEYCODE_COMMA
KEYCODE_. = KEYCODE_STOP
KEYCODE_\ = KEYCODE_BACKSLASH
and so on.
If you are using non-letters or non-numbers in your ctrlr file, make sure you have the description and not the keystroke.
Cheers
-cdbrown