Main > Main Forum
MAME Driver Patch for Hardware Gear Shift Support
<< < (2/8) > >>
Dmod:

--- Quote from: cmoses on May 11, 2009, 08:20:06 pm ---I am not familar with this function.  Does it show on the screen what position the stick is in?  Any pictures?

--- End quote ---

No... nothing fancy like that.  All it does is change the driver interface to expect a two-state hardware switch to control the signal for the gear shift instead of a button that toggles the state of the control.

Many MAME drivers come from the MAME team designed to work with a keypress from a keyboard input.  To make life easier, they allow the keyboard to toggle the state of the control signal so that you don't have to hold the key down all the time to remain in high gear (for example).  By removing the PORT_TOGGLE, the control signal can be modified so that it is controlled by the current state of the switch instead of a stored toggle state.  Then the shifter can control the signal directly... in one position the signal is high and in the other it is low.


The patch needs to be applied prior to compiling the MAME source code.
Minwah:
I did something similar but included all driving games whether they needed altering or not. Also fixed a few other inputs and standardised input labels etc. My latest is based on v0.125, although I did a seperate compile for TX1 more recently...

http://mamewah.mameworld.info/downloads.htm
Jakester:
I applied the patch to latest mame release and it worked great!   I had to hand apply some of patches since the code had changed slightly. I think there were 4 or 5 patches that failed...but they are very easy to apply.
I do see a graphic on the lower right hand corner showing the position of the shift which I would expect is part of mame since it not part of the patch. I need to find out where the graphic is generated and reverse it since it is backwards for my gear shift.
I was playing outrun last night....now to get my pedals recognized properly. It seems they are backwards. I press the gas and it stops...perhaps I just need to reverse the ground and power so I don't need to change the configuration in mame.

Thanks dmod for your patch!!
Dmod:
Unless you're running some custom UI, that graphic is probably part of the game and can't be modified.  If you are using a gear shift with a three terminal switch (like the Happ Hi/Lo), then one of the terminals is common and the other two control whether the switch appears "normally open" or "normally closed".

You can reverse the gear shift behavior by moving the wire that is connected to the normally open terminal to the normally closed terminal (or vice versa).
Ummon:
Aaron added that shifter graphic a few versions back. As for the pedals, I think you can reverse the directions in mame.
Navigation
Message Index
Next page
Previous page

Go to full version