Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Jedi Master Matt on February 04, 2005, 06:58:16 pm
-
Ok, I think I've solved my config issue from last night and now I'm trying to tackle the creation of MAME controller files to manage my control panel. I decided to start by tackling the NeoGeo games first since this was my first time trying out the controller format.
I think I've got it setup right; but, it isn't working. I'm trying to map buttons 7456 to ABCD.
Please take a look at my config settings to help me see what I'm doing wrong:
MAME Cfg
### Input device options ###
mouse 1
joystick 0
lightgun 0
dual_lightgun 0
offscreen_reload 0
steadykey 0
keyboard_leds 1
led_mode ps/2
a2d_deadzone 0.300000
ctrlr neogeo
paddle_device keyboard
adstick_device keyboard
pedal_device keyboard
dial_device keyboard
trackball_device keyboard
lightgun_device keyboard
digital none
Controller file named neogeo
<mameconfig version="10">
<system name="neogeo.c">
<!-- neogeo input configuration file -->
<input>
<port type="P1_BUTTON4">
<newseq type="standard">KEYCODE_LALT OR JOYCODE_1_BUTTON2 OR MOUSECODE_1_BUTTON3</newseq>
</port>
<port type="P1_BUTTON5">
<newseq type="standard">KEYCODE_SPACE OR JOYCODE_1_BUTTON3 OR MOUSECODE_1_BUTTON2</newseq>
</port>
<port type="P1_BUTTON6">
<newseq type="standard">KEYCODE_LSHIFT OR JOYCODE_1_BUTTON4</newseq>
</port>
<port type="P1_BUTTON7">
<newseq type="standard">KEYCODE_LCONTROL OR JOYCODE_1_BUTTON1 OR MOUSECODE_1_BUTTON1</newseq>
</port>
<port type="P2_BUTTON4">
<newseq type="standard">KEYCODE_S OR JOYCODE_2_BUTTON2</newseq>
</port>
<port type="P2_BUTTON5">
<newseq type="standard">KEYCODE_Q OR JOYCODE_2_BUTTON3</newseq>
</port>
<port type="P2_BUTTON6">
<newseq type="standard">KEYCODE_W OR JOYCODE_2_BUTTON4</newseq>
</port>
<port type="P2_BUTTON7">
<newseq type="standard">KEYCODE_A OR JOYCODE_2_BUTTON1</newseq>
</input>
</system>
</mameconfig>
-
I finally figured it out. The file I posted was something I was messing around with while I was at work today, so I wasn't thinking thing through clearly. I was trying to map my IPAC button numbers to the MAME default keys, instead of mapping MAME button numbers to my IPAC controls. So, in other words- completely backwards.
All it took was a looking at the in game tab menu for a NeoGeo game to figure it out.
So, for those that may have the same problem, here's the fixed file:
<mameconfig version="10">
<system name="neogeo">
<!-- neogeo input configuration file -->
<input>
<port type="P1_BUTTON1">
<newseq type="standard">KEYCODE_LCONTROL OR KEYCODE_C</newseq>
</port>
<port type="P1_BUTTON2">
<newseq type="standard">KEYCODE_LALT OR KEYCODE_LSHIFT</newseq>
</port>
<port type="P1_BUTTON3">
<newseq type="standard">KEYCODE_SPACE OR KEYCODE_Z</newseq>
</port>
<port type="P1_BUTTON4">
<newseq type="standard">KEYCODE_X</newseq>
</port>
<port type="P2_BUTTON1">
<newseq type="standard">KEYCODE_A OR KEYCODE_J</newseq>
</port>
<port type="P2_BUTTON2">
<newseq type="standard">KEYCODE_S OR KEYCODE_W</newseq>
</port>
<port type="P2_BUTTON3">
<newseq type="standard">KEYCODE_Q OR KEYCODE_I</newseq>
</port>
<port type="P2_BUTTON4">
<newseq type="standard">KEYCODE_K</newseq>
</port>
</input>
</system>
</mameconfig>
-
While I'm in such a good mood, does anyone have any suggestions for other systems that could benefit from a controller file or is everything else best left for in-game setup?