Build Your Own Arcade Controls Forum

Main => Driving & Racing Cabinets => Topic started by: processedmeat on June 04, 2017, 08:29:02 pm

Title: Use analog pedal as a digital one
Post by: processedmeat on June 04, 2017, 08:29:02 pm
Hi, was wondering if you can use an analog pedal as a digital one in mame? 

In the mame controls menu screen, pressing the analog pedal doesn't do anything when the game calls for an digital one. 

It would seem easy to implement, like if the value is over a certain amount, then it triggers the press.
Title: Re: Use analog pedal as a digital one
Post by: BadMouth on June 04, 2017, 08:42:42 pm
It should work.  Make sure there isn't a separate INI file for the ROM with joystick input disabled.
Title: Re: Use analog pedal as a digital one
Post by: baritonomarchetto on June 06, 2017, 01:35:13 am
It should work. You have to calibrate the pot so that when the pedal is floored, the pot is full turned (zero resistance).
Pay attention or you will break it.
Very likely the pedal will not work correctly with analog controls after that.
Title: Re: Use analog pedal as a digital one
Post by: BadMouth on June 06, 2017, 07:46:22 am
Nah, MAME should sense it as soon as there is ANY movement as long as it shows up and is working under game controllers in windows.
Title: Re: Use analog pedal as a digital one
Post by: baritonomarchetto on June 07, 2017, 12:39:56 am
Ah, yes. Mame can use analog inputs in place of digital. For some reason I was referring to something more general, not mame exclusive
Title: Re: Use analog pedal as a digital one
Post by: processedmeat on June 07, 2017, 02:51:56 pm
Thanks for the replies everyone.  I guess one of my pedals was a little flaky so I cleaned the potentiometer with some deoxit.  Side question, can you adjust the deadzone using the joystick deadzone setting in the mame.ini?  I tried but it doesn't seem to do anything.
Title: Re: Use analog pedal as a digital one
Post by: BadMouth on June 08, 2017, 09:53:20 am
Thanks for the replies everyone.  I guess one of my pedals was a little flaky so I cleaned the potentiometer with some deoxit.  Side question, can you adjust the deadzone using the joystick deadzone setting in the mame.ini?  I tried but it doesn't seem to do anything.

It won't affect the deadzone if you have it mapped to a digital input.

On one of my old setups, I left the pot in place but also mounted a switch on the clutch pedal that would be tripped when the pedal was fully depressed.
It was easy because the happ pedals used a fan gear.  I just mounted a microswitch with a lever so the fan gear would hit the lever.
IIRC, there was one game where the original pedal was a digital switch but I didn't want the clutch pedal triggering it until fully depressed.
Title: Re: Use analog pedal as a digital one
Post by: Marcoqwerty on June 12, 2017, 12:05:49 pm

It won't affect the deadzone if you have it mapped to a digital input.

On one of my old setups, I left the pot in place but also mounted a switch on the clutch pedal that would be tripped when the pedal was fully depressed.
It was easy because the happ pedals used a fan gear.  I just mounted a microswitch with a lever so the fan gear would hit the lever.
IIRC, there was one game where the original pedal was a digital switch but I didn't want the clutch pedal triggering it until fully depressed.

I doing the same...because i wanted use both kind of games...

Full explanation on my blog:

http://supercoin.blogspot.it/2017/04/driving-arcade-cab-il-pedale-con.html (http://supercoin.blogspot.it/2017/04/driving-arcade-cab-il-pedale-con.html)

At the moment i have some issue to setup the offset of the pot...after installation have a negative range (-234 to -450); i should probably open again the pedal and adjust manually the range...(i think its the only way)