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: MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2  (Read 1340 times)

0 Members and 1 Guest are viewing this topic.

sharkus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:December 31, 2015, 12:11:02 am
  • I'm not losing my hair. It's just migrating.
    • Sharkus's Home Page
MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2
« on: January 25, 2006, 01:19:47 pm »
I've recently been playing around with Johnny5 and found that it needs a complete controller definition to work properly.  Attached is a cfg file that maps the default MiniPAC/IPAC2 keys.

I'm also trying to figure out how to do the following:  for games that only use one set of controls, I would like to enable both the P1 and P2 controls (i.e. allow the user to use either joystick or buttons).  What is the easiest way to accomplish this?

sharkus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:December 31, 2015, 12:11:02 am
  • I'm not losing my hair. It's just migrating.
    • Sharkus's Home Page
Re: MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2
« Reply #1 on: January 27, 2006, 02:03:15 pm »
After doing some searching I couldn't find a solution to mapping the P1 controls to the P2 controls for games that didn't use the P2 controls (other than manually changing the controls for each game in mame)...

So I wrote a quick python script that modifies the mame.ini file before mame (and johnny5 runs).  Uploads are not working on BYOAC (directory full), so I put the script on my home page.  It is available here:

http://www.sharkus.com/wordpress/?p=24

It can also be used as an example to do other useful things before mame runs.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8187
  • Last login:Yesterday at 01:58:22 am
  • The Bears Still Suck!
Re: MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2
« Reply #2 on: January 27, 2006, 02:30:14 pm »
<system name="some game or system">
<input>
<port type="P1_BUTTON1">
<newseq type="standard">KEYCODE_LCONTROL</newseq>
</port>
<port type="P2_BUTTON1">
<newseq type="standard">KEYCODE_LCONTROL</newseq>
</port>
</input>
</system>


It does matter what order you put the system tags, which is why I liked the old ctrlr files better.