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: Option to turn hi/lo shifter toggle off added to official MAME build (v1.51)  (Read 10411 times)

0 Members and 1 Guest are viewing this topic.

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
hap gave us a way to turn off the hi/lo toggle in the official MAME build.  :applaud:

From MAMEworld Emuchat forum:
Quote
Ok, the toggle on hi/lo gearshift can now be turned off by editing the game cfg file. I won't add it to the MAME internal UI though.

From the MAME commits:
Quote
Hardcoded toggled inputs (eg. simulated hi-lo gearshift-lock in racing games)...
http://git.redump.net/mame/

Quote
For example, to disable the toggle on the shifter in outrun, open /cfg/outrun.cfg and add toggle="no" to the port tag, like so:
<port tag=":SERVICE" type="P1_BUTTON1" mask="16" defvalue="0" toggle="no">


« Last Edit: November 05, 2013, 03:33:15 pm by BadMouth »

Xiaou2

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4134
  • Last login:June 11, 2025, 11:55:17 pm
  • NOM NOM NOM
Re: Option to turn hi/lo shifter toggle off added to official MAME build
« Reply #1 on: October 27, 2013, 09:54:32 pm »
 :applaud:

 :cheers:

Thanks to the Devs for finally adding this much needed and desired option.


Fursphere

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1267
  • Last login:July 12, 2025, 03:05:16 pm
Re: Option to turn hi/lo shifter toggle off added to official MAME build
« Reply #2 on: October 27, 2013, 11:59:16 pm »
What version is that available in?!?!??!

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
Re: Option to turn hi/lo shifter toggle off added to official MAME build
« Reply #3 on: October 28, 2013, 08:52:34 am »
What version is that available in?!?!??!

It will be in the next official one on http://www.mamedev.org/

0.150u1 if you get the interim updates and compile your own.
0.151 would be the next official main release.

Here is hap's diff file if you want to try to roll it into the current version v0.150
http://git.redump.net/mame/commit/?id=f799e3e599a74e2960a1574721cab43c3bf22a0e

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
.151 is out and includes this feature.

To repeat how to use it:
Quote
For example, to disable the toggle on the shifter in outrun, open /cfg/outrun.cfg and add toggle="no" to the port tag, like so:
<port tag=":SERVICE" type="P1_BUTTON1" mask="16" defvalue="0" toggle="no">

This will only make the game behave like it original did, so if you have a sequential shifter that returns to center, it's not going to help.
Most older games with a Hi/Lo shifter only had one switch.  If the Hi switch wasn't being pressed, the game would default to Lo (or vice versa).
If you have a Hi/Lo or H shifter that stays in gear, then this will solve the toggle issue for you.
« Last Edit: November 05, 2013, 09:24:24 pm by BadMouth »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 13, 2025, 11:38:27 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Yeah unfortunately this still isn't the best solution for most. 

We need yet another option that splits the hi/low into separate buttons. 

dee22

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:November 07, 2013, 12:47:42 am
  • I want to build my own arcade controls!
Thanks for sharing the information. I found the information very helpful.

Fursphere

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1267
  • Last login:July 12, 2025, 03:05:16 pm
Yeah unfortunately this still isn't the best solution for most. 

We need yet another option that splits the hi/low into separate buttons.

Just set it up so that on your wheel - "in gear" = high, "in neutral" = low


BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
The current change does what I was doing manually, removes the toggle and nothing more.  You need to have a shifter that stays in place.  It works fine on my H shifter.  Some games default to hi and some default to low, so it takes a little trial and error as to which gear on the shifter to map to the single shifter input.

A full solution would add inputs for both gears and have them latch.  That would work for those with paddle or sequential shifters that don't stay in gear and hold th switch closed.

sent from my phone while driving