I'm working on adding driving controls to a project of mine, and a couple of questions came up that I hadn't considered when it comes to MAME's control system;
I've got the steering wheel sorted, and I have options regarding a gas pedal (more on that in a bit). The primary question concerns the gear shift.
I've gone with a microswitch based High/Low gear shift. When the lever is in one position, the microswitch is on, and off when it's in the other position. Simple, right?
The complication arises in MAME's handling of a gear shift situation (Let's use Out Run as an example).
To shift between High, and Low gears, one presses, and releases the Spacebar (by default, I believe).
Obviously, a 'real' gearshift control cannot duplicate the action of pressing and releasing a key every time it's moved from one position to the other, so my question is; Is there a setting in MAME that allows for one gear to be recognized by a sustained keypress, and the other to be recognized by the absence of said keypress?
Also, would I be better served by the addition of a microswitch based gas pedal, or one based on the input of a potentiometer?
(I'm sure this question must have come up before, in some forum somewhere, but I trust the folks who hang out here...