Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: equlizer on September 29, 2011, 12:52:45 am

Title: Can you tell a MAME game to "not" use diagonals?
Post by: equlizer on September 29, 2011, 12:52:45 am
There are a few games i play that i "dont" want diagonals.  Is there a way to set it up that way?
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: headkaze on September 29, 2011, 03:56:35 am
You could try the Mame Joystick Map Editor (http://headsoft.com.au/index.php?category=mame&page=joymap)
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: Hoopz on September 29, 2011, 05:02:11 pm
Mame has a "not" command that you can try too.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: Gray_Area on October 01, 2011, 11:53:57 pm
What version of MAME?
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: equlizer on October 02, 2011, 04:04:47 am
0143 command line
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: Gray_Area on October 04, 2011, 10:59:45 pm
I suggest using Headkaze's app.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: zorrobandito on October 13, 2011, 09:16:22 am
Based on the output of this thread, I just tried Headkaze's app. It works a treat.

BTW Headkaze, it's not clear from your site that the app does more than remap analog joysticks. I found it a few weeks ago but kept on searching because all the instructions are for analog joysticks.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: equlizer on October 15, 2011, 12:18:21 am
is this a compiler program?  im a little confused :dizzy:
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: zorrobandito on October 16, 2011, 01:17:57 am
No, it's a standalone app that writes mame compatible joystick settings. The settings in the ini remap some directions to make them more compatible but don't change the physical properties. Basically, it's a hack but it's pretty effective. YEMV.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: TheManuel on October 18, 2011, 09:52:43 am
Example of how to do this in the ctrlr file or game's cfg file:


Code: [Select]
<system name="mspacman">

<input>

<!-- Eliminate diagonal inputs -->
<port type="P1_JOYSTICK_UP">
<newseq type="standard">KEYCODE_UP NOT KEYCODE_LEFT NOT KEYCODE_RIGHT</newseq>
</port>
<port type="P1_JOYSTICK_DOWN">
<newseq type="standard">KEYCODE_DOWN NOT KEYCODE_LEFT NOT KEYCODE_RIGHT</newseq>
</port>
<port type="P1_JOYSTICK_LEFT">
<newseq type="standard">KEYCODE_LEFT NOT KEYCODE_UP NOT KEYCODE_DOWN</newseq>
</port>
<port type="P1_JOYSTICK_RIGHT">
<newseq type="standard">KEYCODE_RIGHT NOT KEYCODE_UP NOT KEYCODE_DOWN</newseq>
</port>

</input>

</system>

You can also do this from the in-game menu (menu >> input - this game).
Example:
Player 1 Up: press Enter > press Up > press left twice > press right twice
There is a timing window for this so you have to enter those commands in relatively quick succession.

Of course, this leaves dead zones in the joystick, if you are using an 8-way.  This is why most people interested in classic games buy a 4-way.  I bought the Galaga/Ms Pacman replacement joystick about 7 years ago and it's still a good low-cost alternative.

Good luck.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: Lilwolf on October 22, 2011, 12:37:43 pm
I thought mame stopped allowing diagonals in 4way games years ago.  but you can do the nots in mame... (I think selecting the same direction twice is not... so up, not left, not right is up, left, left, right, right...)  But I think the drivers do this now without any changes.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: equlizer on October 22, 2011, 12:57:37 pm
I just find it difficult to play games like Robotron and pacman with a Sanwa JLW and a square gate.  Will a circle help?  I still want to be able to play SSF4 fluently though.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: RandyT on November 04, 2011, 04:23:05 pm
I just find it difficult to play games like Robotron and pacman with a Sanwa JLW and a square gate.  Will a circle help?  I still want to be able to play SSF4 fluently though.

Pacman, I can understand, but Robotron?  You really need the diagonals to be working in Robotron.  If you are getting hung in the corners, a circular restrictor will probably help.
Title: Re: Can you tell a MAME game to "not" use diagonals?
Post by: equlizer on November 04, 2011, 08:46:54 pm
Ordered 2 of those last sat.  Should be here next week sometime :applaud:  Hope it doesnt interfere with my street figter 4 play