Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mame cp button order  (Read 9328 times)

0 Members and 1 Guest are viewing this topic.

thomas_surles

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2118
  • Last login:September 13, 2024, 06:34:49 pm
Mame cp button order
« on: April 15, 2014, 07:29:18 pm »
I need help deciding the order to do my buttons for a 6 button layout. I want to know how everyone else does it.
is your button 1 on top or bottom? which would work out the best and feel more comfortable?

Slippyblade

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3167
  • Last login:June 05, 2024, 10:30:57 am
  • And to the death god we say, "Not today!"
Re: Mame cp button order
« Reply #1 on: April 15, 2014, 07:31:10 pm »
123
456


Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Mame cp button order
« Reply #2 on: April 15, 2014, 07:34:00 pm »
I have a seven button layout.  I have the bottom 4 wired 1-4.  I can't say I've used 4 for a game yet, but it looks nice because I have them in the neo geo colors.

I'd say bottom 3 as 1-3.  Change the ini file for your fighting games to have 1-3 on top and 4-6 on bottom.


I will say that the arch I chose messes me up when I try to use button 3, so new control panel for me eventually. Yay.

YMMV.  Just make the underside of your cp accessible and you can change it if you don't like it.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 06:57:41 am
  • ...
Re: Mame cp button order
« Reply #3 on: April 15, 2014, 07:37:26 pm »
By default MAME assumes your buttons are numbered like so:

123
456

Map them that way and all the Capcom and Midway fighters will be mapped correctly.
Having the fourth button for Neo Geo in the second row is actually pretty nice. 
You can hit it with your thumb.

For the sake of including relevant information in this thread.....

If you have more than 6 buttons and map them like so:

1234
5678

You end up having to remap a ton of games.  Better to go with:

1237
4568

thomas_surles

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2118
  • Last login:September 13, 2024, 06:34:49 pm
Re: Mame cp button order
« Reply #4 on: April 15, 2014, 07:40:16 pm »
thanks that helps a lot. i like the idea of hitting number 4 with the thumb. seems like that would be the easiest.

Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Mame cp button order
« Reply #5 on: April 15, 2014, 07:44:43 pm »
Those guys are right.  The question you should be asking yourself is "Do you feel lucky?"  Wait no.  You should ask yourself what type of game you are going to play more.  Wire it that way.  Not everyone needs all 6 or 8 buttons.

I don't like my cp and plan on rewiring it.  I didn't really get to the point in my last post. 

thomas_surles

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2118
  • Last login:September 13, 2024, 06:34:49 pm
Re: Mame cp button order
« Reply #6 on: April 15, 2014, 08:07:14 pm »
I need the 6 buttons because besides mame I am also doing snes which requires 6 buttons plus a start and select (coin&p1)

Benzinbruder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 95
  • Last login:January 10, 2016, 07:38:04 am
  • I want to build my own arcade cabinet!
Re: Mame cp button order
« Reply #7 on: April 16, 2014, 03:26:09 am »
By default MAME assumes your buttons are numbered like so:

123
456

Map them that way and all the Capcom and Midway fighters will be mapped correctly.
Having the fourth button for Neo Geo in the second row is actually pretty nice. 
You can hit it with your thumb.

For the sake of including relevant information in this thread.....

If you have more than 6 buttons and map them like so:

1234
5678

You end up having to remap a ton of games.  Better to go with:

1237
4568

So, with a 7 button layout like this:

   o o o
o o o o

what would be the correct way to wire them?

   1 2 3
7 4 5 6

I suppose, and probably

   5 6 7
1 2 3 4

for Neo-Geo ???

Isn't there a way to map all Neo-Geo games like the second version, and all the rest like the first?

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: Mame cp button order
« Reply #8 on: April 16, 2014, 04:48:24 am »
If you play a lot of 1/2 button games (like I do) you probably like them to be on the bottom left:

  567
1234

You should remap your buttons for the 6 button fighters to use 5-6-7-2-3-4 as your 6 buttons 1 til 6 though.


Benzinbruder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 95
  • Last login:January 10, 2016, 07:38:04 am
  • I want to build my own arcade cabinet!
Re: Mame cp button order
« Reply #9 on: April 16, 2014, 06:16:48 am »
Well, since I've based my layout on your CP, I'd probably do good to follow your advice. ;) Thanks!

Is there a way to tell Hyperspin / Mame to remap all fighter games automatically or is that something I would have to do manually?
Sorry for the noob-question, I'm not that much into the software stuff yet. I'm hoping that my new hardware arrives soon though, so I can set things up!

WakiMiko

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 317
  • Last login:January 04, 2019, 03:17:46 pm
Re: Mame cp button order
« Reply #10 on: April 16, 2014, 09:16:29 am »
You might want to look into ctrlr files to set up your controls. They allow you to change the controls for a specific system (e.g. neogeo). Some info here: http://wiki.arcadecontrols.com/wiki/Ctrlr_file

For example, if you have your encoder (in my case an I-PAC) set up to send the following keycodes:

ASDF
ZXCV


Create controls.cfg and put it into the ctrlr directory:
Code: [Select]
<mameconfig version="10">
    <system name="default">
        <input>
            <port type="P1_BUTTON1">
                <newseq type="standard">
                    KEYCODE_A
                </newseq>
            </port>
            <port type="P1_BUTTON2">
                <newseq type="standard">
                    KEYCODE_S
                </newseq>
            </port>
            <port type="P1_BUTTON3">
                <newseq type="standard">
                    KEYCODE_D
                </newseq>
            </port>
            <port type="P1_BUTTON4">
                <newseq type="standard">
                    KEYCODE_Z
                </newseq>
            </port>
            <port type="P1_BUTTON5">
                <newseq type="standard">
                    KEYCODE_X
                </newseq>
            </port>
            <port type="P1_BUTTON6">
                <newseq type="standard">
                    KEYCODE_C
                </newseq>
            </port>
            <port type="P1_BUTTON7">
                <newseq type="standard">
                    KEYCODE_F
                </newseq>
            </port>
            <port type="P1_BUTTON8">
                <newseq type="standard">
                    KEYCODE_V
                </newseq>
            </port>
        </input>
    </system>
    <system name="neogeo">
        <input>
            <port type="P1_BUTTON4">
                <newseq type="standard"
                    KEYCODE_F OR KEYCODE_Z
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>

Then in mame.ini set the ctrlr line to:
Code: [Select]
ctrlr                     controls
This will allow you to use either the fourth button in the top row or the first button in bottom row as the NeoGeo 'D' button. Of course you can just change the KEYCODE_F OR KEYCODE_Z line if you want to allow only one button.
For every other (non-neogeo) game the button layout will be like this, which should work fine for most games and fighters.

1237
4568


If you have a 7 button setup or would rather use the bottom row for neogeo games, it should be easy to adapt my example. You could also add other systems that use weird button layouts.
« Last Edit: April 16, 2014, 09:40:42 am by WakiMiko »

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: Mame cp button order
« Reply #11 on: April 16, 2014, 09:23:13 am »
You might want to look into ctrlr files to set up your controls. They allow you to change the controls for a specific system (e.g. neogeo). Some info here: http://wiki.arcadecontrols.com/wiki/Ctrlr_file

For example, if you have your encoder (in my case an I-PAC) set up to send the following keycodes:

ASDF
ZXCV


Create controls.cfg and put it into the ctrlr directory:
Code: [Select]
<mameconfig version="10">
    <system name="default">
        <input>
            <port type="P1_BUTTON1">
                <newseq type="standard">
                    KEYCODE_A
                </newseq>
            </port>
            <port type="P1_BUTTON2">
                <newseq type="standard">
                    KEYCODE_S
                </newseq>
            </port>
            <port type="P1_BUTTON3">
                <newseq type="standard">
                    KEYCODE_D
                </newseq>
            </port>
            <port type="P1_BUTTON4">
                <newseq type="standard">
                    KEYCODE_Z
                </newseq>
            </port>
            <port type="P1_BUTTON5">
                <newseq type="standard">
                    KEYCODE_X
                </newseq>
            </port>
            <port type="P1_BUTTON6">
                <newseq type="standard">
                    KEYCODE_C
                </newseq>
            </port>
            <port type="P1_BUTTON7">
                <newseq type="standard">
                    KEYCODE_F
                </newseq>
            </port>
            <port type="P1_BUTTON8">
                <newseq type="standard">
                    KEYCODE_V
                </newseq>
            </port>
        </input>
    </system>
    <system name="neogeo">
        <input>
            <port type="P1_BUTTON4">
                <newseq type="standard"
                    KEYCODE_F OR KEYCODE_
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>

Then in mame.ini set the ctrlr line to:
Code: [Select]
ctrlr                     controls
This will allow you to use either the fourth button in the top row or the first button in bottom row as the NeoGeo 'D' button. Of course you can just change the KEYCODE_F OR KEYCODE_Z line if you want to allow only one button.
For every other (non-neogeo) game the button layout will be like this, which should work fine for most games and fighters.

1237
4568


If you have a 7 button setup or would rather use the bottom row for neogeo games, it should be easy to adapt my example.
That's nice for neo geo games but for the many 1/2-button games like Donkey Kong you want the bottom left button to be your action button is a 7 button layout.

WakiMiko

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 317
  • Last login:January 04, 2019, 03:17:46 pm
Re: Mame cp button order
« Reply #12 on: April 16, 2014, 09:31:52 am »
My solution might not be perfect for everyone but it solves Benzinbruder's problem without having to spend a ton of time remapping every fighting or neogeo game.

Though I don't know where he prefers his "main button" to be, for me it has always been the top left button. That's "jump" in Donkey Kong "shoot" in virtually every shmup and I like it that way.  ;D
« Last Edit: April 16, 2014, 09:34:18 am by WakiMiko »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 06:57:41 am
  • ...
Re: Mame cp button order
« Reply #13 on: April 16, 2014, 09:45:21 am »
So, with a 7 button layout like this:

   o o o
o o o o

what would be the correct way to wire them?

   1 2 3
7 4 5 6

I suppose, and probably

   5 6 7
1 2 3 4

for Neo-Geo ???

Isn't there a way to map all Neo-Geo games like the second version, and all the rest like the first?

In my opinion yes.  The first one you posted would be the default and the second would be for Neo Geo games.
I posted a little batch file in this thread to remap all the neo geo games: http://forum.arcadecontrols.com/index.php/topic,135983.msg1405936.html#msg1405936

That should cover most things.   You'll probably also want to remap the run button in MK3 to your extra one.

My current setup is:
oooo
ooo
with the Neo Geo row on top.
To be honest after playing it a while, I'd prefer to use the first button in the second row as the last Neo Geo button and hit it with my thumb instead of hitting the one in the top row with my pinky.
My cab is neo geo themed and they are the proper color though, so I can't just change it. 
I'll probably end up mapping both buttons to the last Neo Geo button.


WakiMiko

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 317
  • Last login:January 04, 2019, 03:17:46 pm
Re: Mame cp button order
« Reply #14 on: April 16, 2014, 09:51:04 am »
I'll probably end up mapping both buttons to the last Neo Geo button.

Look at my post then as it does exactly this, no batch files needed :P

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 06:57:41 am
  • ...
Re: Mame cp button order
« Reply #15 on: April 16, 2014, 09:51:54 am »
That's nice for neo geo games but for the many 1/2-button games like Donkey Kong you want the bottom left button to be your action button is a 7 button layout.

I don't.  My fingers instinctively go to the top row.
This has been discussed before and IMO it falls among generational lines.
Us old folks who grew up playing on controllers with only one row of buttons go for the top.
Younger folks go for the bottom row for the main buttons, like was on the controllers they grew up with.
Might be wrong or right, but that's my theory.

All of my guests always go for the top row.

Also, if you start on the bottom, you'll end up having to remap ALL the fighting games except for Neo Geo.
« Last Edit: April 16, 2014, 10:20:14 am by BadMouth »

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: Mame cp button order
« Reply #16 on: April 16, 2014, 11:48:14 am »
Us old folks who grew up playing on controllers with only one row of buttons go for the top.

I'm 36 and was in the arcades starting in 1980. Pretty much grew up in the arcade, and I prefer bottom row.
456
1237 (7 is mapped as 4)

Quote
Also, if you start on the bottom, you'll end up having to remap ALL the fighting games except for Neo Geo.

Meh, it's not that big a deal to me or my guests. They didn't play enough Capcom fighting games to notice.
« Last Edit: April 16, 2014, 12:49:46 pm by Ginsu Victim »

Generic Eric

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4520
  • Last login:July 15, 2024, 09:18:25 pm
  • Restore! Don't maim for MAME, build from scratch!
    • forum.arcadecontrols.com/index.php/topic,143226.0.html
Re: Mame cp button order
« Reply #17 on: April 16, 2014, 11:55:46 am »
Maybe this is what 1 should have done?  I've yet to edit an ini:

456
1234
 
I've yet to play a 7 button game.

surface tension

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 323
  • Last login:July 01, 2018, 08:45:48 am
  • feel the tension...
    • surface tension tables
Re: Mame cp button order
« Reply #18 on: April 16, 2014, 12:01:23 pm »
We configure like this out of the box...

1 2 3 4
5 6 7

This allows for the Neo-Geo and Streetfighter players. However, in MAME if you configure the bottom row as buttons 4 5 6, then you have both configurations ready to go. It's a 6-button layout, but you can change to 7.
« Last Edit: April 16, 2014, 12:02:54 pm by surface tension »

WakiMiko

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 317
  • Last login:January 04, 2019, 03:17:46 pm
Re: Mame cp button order
« Reply #19 on: April 16, 2014, 12:31:49 pm »
I don't see how

1 2 3 4
5 6 7

allows for Street Fighter

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4779
  • Last login:July 11, 2025, 09:17:44 am
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: Mame cp button order
« Reply #20 on: April 16, 2014, 01:43:52 pm »
My solution might not be perfect for everyone but it solves Benzinbruder's problem without having to spend a ton of time remapping every fighting or neogeo game.
Yes, this is a known solution to remap buttons for the Neo Geo layout.  http://forum.arcadecontrols.com/index.php/topic,138676.msg1432590.html#msg1432590

D
Stop by my Youtube channel and leave a comment:

eds1275

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2165
  • Last login:July 21, 2025, 05:34:15 pm
  • Rock and Roll!
Re: Mame cp button order
« Reply #21 on: April 16, 2014, 05:42:32 pm »
I used a program to remap all my buttons for me. I have a 7 button layout like this, with the 1's wired together:

   5 1 6
   2 3 4
1

for anything 4 buttons or less I made everything the bottom row, 1 2 3 4. And for 5 or more buttons, it remapped everything 1-3, 4-6, top to bottom like a street fighter layout. And then I manually remapped all my mortal kombats.

The program is called CFG Magician and is the best thing ever for this.

http://forum.arcadecontrols.com/index.php/topic,88948.0.html

Benzinbruder

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 95
  • Last login:January 10, 2016, 07:38:04 am
  • I want to build my own arcade cabinet!
Re: Mame cp button order
« Reply #22 on: April 17, 2014, 07:28:09 am »
AWESOME!  :applaud:

Thank's for all the great feedback.

I felt that the Neo-Geo row should be at the bottom, as then there is no bottom row of buttons in the way when you want to rest your palms on the CP.

Not sure about the action button for the MAME games though. I'll have to try and see whatever I (and my guests) prefer. Good thing that there are so many ways of remapping the buttons.  :)
« Last Edit: April 17, 2014, 08:41:16 am by Benzinbruder »

surface tension

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 323
  • Last login:July 01, 2018, 08:45:48 am
  • feel the tension...
    • surface tension tables
Re: Mame cp button order
« Reply #23 on: April 17, 2014, 08:34:02 am »
I don't see how

1 2 3 4
5 6 7

allows for Street Fighter

Well, fighters such as SF2 have a 3 x 2 layout. So inputs 4 and 5 are both mapped to 4, giving this layout.

1 2 3 4
4 5 6