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: Neo Geo control panel question  (Read 3384 times)

0 Members and 1 Guest are viewing this topic.

JuddWack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 01, 2004, 03:03:41 pm
  • I'm a llama!
Neo Geo control panel question
« 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?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:Neo Geo control panel question
« Reply #1 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.

Hellfromabove

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 262
  • Last login:January 08, 2020, 05:45:41 pm
  • Soundwave Superior, Constructocons Inferior!
Re:Neo Geo control panel question
« Reply #2 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!!!

JuddWack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 01, 2004, 03:03:41 pm
  • I'm a llama!
Re:Neo Geo control panel question
« Reply #3 on: February 06, 2003, 09:37:24 pm »
awsome.  thanks guys

2slk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 180
  • Last login:February 27, 2004, 11:38:09 pm
  • Fascinating, Captain.
Re:Neo Geo control panel question
« Reply #4 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).

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:Neo Geo control panel question
« Reply #5 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.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Neo Geo control panel question
« Reply #6 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.
Robin
Knowledge is Power

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:Neo Geo control panel question
« Reply #7 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.

JuddWack

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 38
  • Last login:February 01, 2004, 03:03:41 pm
  • I'm a llama!
Re:Neo Geo control panel question
« Reply #8 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?

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re:Neo Geo control panel question
« Reply #9 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.
Robin
Knowledge is Power

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:Neo Geo control panel question
« Reply #10 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"

motorfish

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 282
  • Last login:September 30, 2009, 03:35:08 am
Re:Neo Geo control panel question
« Reply #11 on: February 11, 2003, 12:12:45 pm »
Mine I wired like this:

1237
456

"7" being the fourth button for Neo Geo games.
Have you paid your dues Jack?......Yessir, the check is in the mail!

djsting

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 111
  • Last login:July 22, 2015, 08:30:06 pm
  • I want my own arcade controls!
    • My MAME Project
Re:Neo Geo control panel question
« Reply #12 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?

Grasshopper

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2380
  • Last login:March 04, 2025, 07:13:36 pm
  • life, don't talk to me about life
Re:Neo Geo control panel question
« Reply #13 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.
« Last Edit: February 13, 2003, 06:06:50 pm by Grasshopper »
"Patriotism is the last refuge of the scoundrel." - Samuel Johnson