Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: sharkus on January 25, 2006, 01:19:47 pm

Title: MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2
Post by: sharkus 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?
Title: Re: MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2
Post by: sharkus 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.
Title: Re: MiniPAC/IPAC2 ctrlr.cfg file and Question on Mapping P1 to P2
Post by: SirPoonga 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.