Main > Main Forum

Mame cp button order

Pages: << < (3/5) > >>

WakiMiko:

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: ---<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>
--- End code ---

Then in mame.ini set the ctrlr line to:

--- Code: ---ctrlr                     controls
--- End code ---

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.

EMDB:


--- Quote from: WakiMiko 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: ---<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>
--- End code ---

Then in mame.ini set the ctrlr line to:

--- Code: ---ctrlr                     controls
--- End code ---

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.

--- End quote ---
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:

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

BadMouth:


--- Quote from: Benzinbruder on April 16, 2014, 03:26:09 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?

--- End quote ---

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:


--- Quote from: BadMouth on April 16, 2014, 09:45:21 am ---I'll probably end up mapping both buttons to the last Neo Geo button.

--- End quote ---

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

Pages: << < (3/5) > >>

Go to full version