What do you mean? I use mame with mamewah. I have not had to configure anything for the games, they just work. How are you controlling the games? Are you using your keyboard? If you are using a control panel, how have you mapped the keys?
Mame has a default for what keys perform each command in mame, ie. player1_button1, player1_button2, etc. etc.
Can you clarify?