|
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
|
|