Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: JuddWack on February 05, 2003, 10:35:15 pm

Title: Neo Geo control panel question
Post by: JuddWack on February 05, 2003, 10:35:15 pm
Ok I want my controller to be optimized for 6 button fighters and neo geo.  I dunno if this is possable. here is why

six button figher controls are prettu much like this
4 5 6
1 2 3

neo geo is like this
   2 3 4
1

Now combining this my control panel would look like this
  x x x
  x x x
x

Now if I add the thumb button to the 6 button fighter setup to use for Neo Geo then it would have to be a 4. and look like this

  4 5 6
  1 2 3
4

Which is totally messed up.  Now for the question.  Is there a way to remap buttons for just neo geo games?  Also what have others done?
Title: Re:Neo Geo control panel question
Post by: SirPoonga on February 05, 2003, 10:41:04 pm
YES!
Look at the /mame/ctrlr folder:)

Make a new directory in there.  Call it say "MyArcade"
Then make a default.ini that maps the keys to

  123
7456

That works for fighters as punch is on top.

Then make a neogeo.ini that remaps to

  567
1234

Then run mame either like mame -ctrlr MyArcade somegame
or edit the mame.ini to always use ctrlr folder.
Title: Re:Neo Geo control panel question
Post by: Hellfromabove on February 06, 2003, 11:54:32 am
Hey if you need a layout for your control panel just PM me and I can get you one that I created. Thanx.

-See Ya!!!
Title: Re:Neo Geo control panel question
Post by: JuddWack on February 06, 2003, 09:37:24 pm
awsome.  thanks guys
Title: Re:Neo Geo control panel question
Post by: 2slk on February 09, 2003, 02:27:59 am
SirPoonga, This may be a stupid question but what if you don't run MAME via a command line (i.e Windows version - shortcut).
Title: Re:Neo Geo control panel question
Post by: SirPoonga on February 09, 2003, 09:11:01 am
SirPoonga, This may be a stupid question but what if you don't run MAME via a command line (i.e Windows version - shortcut).

In mame32?   It uses ctrlr files.
The only version that doesn't is DOS as it doesn't use ini files, it uses cfg files.
Title: Re:Neo Geo control panel question
Post by: u_rebelscum on February 10, 2003, 03:51:23 am
In mame32?   It uses ctrlr files.
The only version that doesn't is DOS as it doesn't use ini files, it uses cfg files.

Dmame uses the ctrlr/ini files now (starting with 0.63, I think, but maybe 0.63 only had partial support).  Dmame version 0.64 does have it, I am sure.  Cross compatable with the windows mame ctrlr/ini files.

Of course, the files in the cfg folder are still .cfg files (cfg/cfg), and are not compatable with windows mame's cfg/ini files.
Title: Re:Neo Geo control panel question
Post by: SirPoonga on February 10, 2003, 02:18:52 pm
AND the cfg files overrule the ini files.  IF you config your controls form the tab menu that will override the ini files.  There is a disadvantage to that.  Well, not now, but in the future.  Once controls.dat gets done, lazarus and my FE will use ctrlr files to figure out where you mapped your controls and there for knowing exactly what controls need to be labeled.
Title: Re:Neo Geo control panel question
Post by: JuddWack on February 10, 2003, 10:05:19 pm
ok i found a default.ini in another folder and a neogeo.ini.  this is a excerpt from default.ini

P1_BUTTON1              "KEYCODE_7 | JOYCODE_1_BUTTON1 |
P1_BUTTON2              "KEYCODE_H | JOYCODE_1_BUTTON2 |
P1_BUTTON3              "KEYCODE_9 | JOYCODE_1_BUTTON3 |
P1_BUTTON4              "KEYCODE_0 | JOYCODE_1_BUTTON4"
P1_BUTTON5              "KEYCODE_Z | JOYCODE_1_BUTTON5"
P1_BUTTON6              "KEYCODE_X | JOYCODE_1_BUTTON6"
P1_BUTTON7              "KEYCODE_LSHIFT"

your saying take the letters/numbers next to keycode and switch them to make it more like a fighter.  for example switch 7 H 9 with 0 Z X ?  Is that right?
Title: Re:Neo Geo control panel question
Post by: u_rebelscum on February 11, 2003, 02:54:35 am
Yes.

Look at ctrlr/hotrodse/neogeo.ini file and compare it to ctrlr/hotrodse/default.ini file to see how the hotrod does it.  If you wire your cp & encoder like the hotrodse, you could even just use those files straight.  The standard mame input setup is listed in ctrlr/std.ini file with a list of all the inputs you can set, but don't edit std.ini; it's there for documenting reasons and editing it wouldn't change anything.
Title: Re:Neo Geo control panel question
Post by: SirPoonga on February 11, 2003, 03:37:49 am
To sum up.  You you have a button layout on your CP with keycoades like

  ASD
ZXCV

Now, for most games you would want

P1_BUTTON1              "KEYCODE_A"
P1_BUTTON2              "KEYCODE_S"
P1_BUTTON3              "KEYCODE_D"
P1_BUTTON4              "KEYCODE_X"
P1_BUTTON5              "KEYCODE_C"
P1_BUTTON6              "KEYCODE_V"


For neogeo you would want

P1_BUTTON1              "KEYCODE_Z"
P1_BUTTON2              "KEYCODE_X"
P1_BUTTON3              "KEYCODE_C"
P1_BUTTON4              "KEYCODE_V"
Title: Re:Neo Geo control panel question
Post by: motorfish on February 11, 2003, 12:12:45 pm
Mine I wired like this:

1237
456

"7" being the fourth button for Neo Geo games.
Title: Re:Neo Geo control panel question
Post by: djsting on February 13, 2003, 05:27:53 pm
SirPoonga,

Is this THE standard layout for both of these or is this some modified version?  

Next, all I would have to do is to create two files in the ctrlr directory one called default.ini and the other called neogeo.ini and place the mapping information in them and MAME will automatically know what to do and how to map the buttons for all games played (I'm using MAME32) with nothing else to do or no extra settings/commands?

Do you already have these created that you can post?
Title: Re:Neo Geo control panel question
Post by: Grasshopper on February 13, 2003, 06:04:03 pm
It occurs to me that if you put the buttons in a diagonal layout like this:

:      4 5 6
:     1 2 3

then you could avoid having to use a seventh button i.e. have buttons 1,4,5,6 for Neo Geo games, and all the buttons for 6 button fighter games.