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: Controller File Problem  (Read 883 times)

0 Members and 1 Guest are viewing this topic.

Jedi Master Matt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:February 22, 2009, 02:51:09 pm
  • I'm a llama!
Controller File Problem
« 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>

Jedi Master Matt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:February 22, 2009, 02:51:09 pm
  • I'm a llama!
Re: Controller File Problem
« Reply #1 on: February 04, 2005, 08:28:15 pm »
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>

Jedi Master Matt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 68
  • Last login:February 22, 2009, 02:51:09 pm
  • I'm a llama!
Re: Controller File Problem
« Reply #2 on: February 04, 2005, 08:29:41 pm »
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?