Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Use analog pedal as a digital one  (Read 3404 times)

0 Members and 1 Guest are viewing this topic.

processedmeat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 253
  • Last login:July 24, 2025, 02:02:02 pm
  • Ikeakade Here I come!
Use analog pedal as a digital one
« 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.

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 08:21:00 am
  • ...
Re: Use analog pedal as a digital one
« Reply #1 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.

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:Yesterday at 10:49:48 am
Re: Use analog pedal as a digital one
« Reply #2 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.
« Last Edit: June 06, 2017, 01:36:55 am by baritonomarchetto »

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 08:21:00 am
  • ...
Re: Use analog pedal as a digital one
« Reply #3 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.

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:Yesterday at 10:49:48 am
Re: Use analog pedal as a digital one
« Reply #4 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

processedmeat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 253
  • Last login:July 24, 2025, 02:02:02 pm
  • Ikeakade Here I come!
Re: Use analog pedal as a digital one
« Reply #5 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.

BadMouth

  • Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 08:21:00 am
  • ...
Re: Use analog pedal as a digital one
« Reply #6 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.

Marcoqwerty

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • Last login:June 09, 2025, 09:45:35 am
Re: Use analog pedal as a digital one
« Reply #7 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

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)