Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started 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?
-
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.
-
<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.