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: Can you tell a MAME game to "not" use diagonals?  (Read 3941 times)

0 Members and 1 Guest are viewing this topic.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Can you tell a MAME game to "not" use diagonals?
« 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?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #1 on: September 29, 2011, 03:56:35 am »
You could try the Mame Joystick Map Editor
« Last Edit: October 13, 2011, 09:27:52 am by headkaze »

Hoopz

  • Don't brand me a troublemaker!
  • Trade Count: (+8)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5285
  • Last login:June 13, 2025, 09:18:32 pm
  • Intellivision Rocks!
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #2 on: September 29, 2011, 05:02:11 pm »
Mame has a "not" command that you can try too.

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #3 on: October 01, 2011, 11:53:57 pm »
What version of MAME?
-Banned-

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #4 on: October 02, 2011, 04:04:47 am »
0143 command line

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #5 on: October 04, 2011, 10:59:45 pm »
I suggest using Headkaze's app.
-Banned-

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #6 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.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #7 on: October 15, 2011, 12:18:21 am »
is this a compiler program?  im a little confused :dizzy:

zorrobandito

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 134
  • Last login:November 22, 2015, 07:19:44 am
    • Zorro's Classic Games
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #8 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.

TheManuel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 825
  • Last login:April 09, 2025, 10:13:43 pm
  • On and off hobbyist
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #9 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.
"The Manuel"

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #10 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.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #11 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.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7014
  • Last login:July 18, 2025, 01:59:43 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #12 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.

equlizer

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 363
  • Last login:November 17, 2019, 02:56:48 am
  • All your base are belong to us
Re: Can you tell a MAME game to "not" use diagonals?
« Reply #13 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