button mapping
-
Hi all, I'm sure I missed it in the docs but I can't seem to find it anywhere but how do the controller inputs map to the various emulators?
When you map your input you are mapping it to what looks like an xinput style controller - with a, b, x, y, left button and right button and start select et al
I built an arcade stick with a 6 button layout, a stick, and 2 extra buttons for start/select/coin, and in mame the retropie dpad maps to the mame stick which works because I mapped the real stick to the retropie dpad.
The real select button maps to the retropie select button which maps to mames coin in.But what does a,b,X,y,lb, and rb map to in mame?
To be clear, it's all working but in street fighter II the small, medium, and large punch isn't in the right order.
-
@jakebriggs Do you understand your button numbers so you can easily map them to the corresponding controller buttons.
I ask because this was a bit of a learning curve for me.
Once I understood the button # of my controller it was much easier to map them to specific keys/controller buttons such as L/R LT/RT etc.
I have 8 buttons, the bottom row goes from 1-4, the top row 5-8 and these are mapped to keys on a keyboard.Have a look here at DEFAULT MAPPING:
https://retropie.org.uk/docs/Keyboard-Controllers/
Dunno if this helps?
-
@jakebriggs Short answer is that a lot of MAME games will just need mapping on a ROM by ROM basis. I just keep a keyboard behind the cabinet and TAB into the settings each time something needs tweaking - eg mapping the player2 stick for twin stick games.
-
@jakebriggs for a 6-button layout, you are supposed to map your buttons like this in retroarch :
Y X L B A R
It might not always work properly in the case of MAME though, because by design MAME expects you to enter its OSD to remap inputs the first time you launch a game.
You could also use FBNeo which use "sane" default mapping with retroarch. -
Thanks all for your advice, I much appreciate it! I'll ensure the buttons are mapped
Y X L
B A Rand I'll give fbneo a go as well - seems like it may have other advantages, although mame seems to run fine so far on a raspberry pi 3
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.