MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Heihachi_73
I am the Table!
Reged: 10/29/03
Posts: 1074
Loc: Melbourne, Australia
Send PM
Re: Stop toggle action in MAME input
12/30/18 07:47 AM


> Is there any way (other than rewriting MAME) to replace a toggle input with normal
> input (press and hold)?

Only by changing the source and recompiling MAME unfortunately. The current toggle design is only for compatibility with keyboards and game controllers where it would be a pain to have to hold the button down all the time.

Just remove PORT_TOGGLE from line 898 in mcr3.cpp (assuming current MAME), save, compile, and it should be gone for good. In older versions which don't line up with 898 just look for static INPUT_PORTS_START( spyhunt ) and a few lines down you should see the PORT_TOGGLE to remove.

This is the line to change, just in case...

Code:

	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Gear Shift") PORT_TOGGLE








Entire thread
Subject Posted by Posted on
* Stop toggle action in MAME input Ron347 12/29/18 10:12 PM
. * Re: Stop toggle action in MAME input hap  12/30/18 02:39 PM
. * Re: Stop toggle action in MAME input Heihachi_73  12/30/18 07:47 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 393 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 430