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: Is there a workaround for MAME pot issue  (Read 2001 times)

0 Members and 1 Guest are viewing this topic.

Retro77

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:September 29, 2023, 08:50:10 am
  • I want to build my own arcade controls!
Is there a workaround for MAME pot issue
« on: February 10, 2021, 07:48:27 am »
Hi all,

I wondered if anyone knew of a workaround when using GroovyMAME and setting pedals as buttons?

What I mean by this is, MAME will allow me to set the accelerator pot on for example, Special Criminal Investigation but when I press it in game it has no effect. I am guessing it is because there are several games that used switches instead of real potentiometers.

Is there a way around this? It would be a shame to have to remove some of these from the cab.

Thanks

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9403
  • Last login:Today at 12:33:15 am
  • Designated spam hunter
Re: Is there a workaround for MAME pot issue
« Reply #1 on: February 10, 2021, 11:55:11 am »
I wondered if anyone knew of a workaround when using GroovyMAME and setting pedals as buttons?

What I mean by this is, MAME will allow me to set the accelerator pot on for example, Special Criminal Investigation but when I press it in game it has no effect. I am guessing it is because there are several games that used switches instead of real potentiometers.

Is there a way around this? It would be a shame to have to remove some of these from the cab.
MAME allows you to map an analog pedal axis to a button/microswitch pedal input.
- Highlight the input.
- Press ENTER.
- Press the pedal.

Just tried mapping an analog stick's Y-axis up to gas and Y-axis down to brake in SCI.
- Gas and brake worked perfectly during gameplay.
- The axis mapped whether it started in the center like an analog stick or at the end of the axis like an un-pressed pedal.
-- As long as MAME registers that the analog control moves far enough in a certain direction, it will map that direction to the input.

If your pedal maps to the input, that indicates that MAME sees it and that it should work during gameplay.   :dunno


Scott

Retro77

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:September 29, 2023, 08:50:10 am
  • I want to build my own arcade controls!
Re: Is there a workaround for MAME pot issue
« Reply #2 on: February 10, 2021, 02:08:50 pm »
Hi Scott,

Thanks for the response. I have just tried it again. I noticed that when I pressed a pedal on Gas Switch it mapped 2 controls.

Joy 2 Left Joy 2 Right

This works for the games that use potentiometers as far as I can tell so I assumed this was correct because for those games it just gets mapped as a Joy axis.

I am using an APAC. So I am thinking that maybe I have wired it incorrectly.

I deleted a control from each of the pedals on SCI.xml and now both pedals work. So I can roll out that fix to the other games.

Thanks again.
« Last Edit: February 10, 2021, 02:10:28 pm by Retro77 »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9403
  • Last login:Today at 12:33:15 am
  • Designated spam hunter
Re: Is there a workaround for MAME pot issue
« Reply #3 on: February 10, 2021, 02:54:59 pm »
I noticed that when I pressed a pedal on Gas Switch it mapped 2 controls.

Joy 2 Left Joy 2 Right
Sounds like you quickly pressed and released the pedal.

If you press and hold the pedal for a few seconds, it should only map one direction.   ;D

I am using an APAC. So I am thinking that maybe I have wired it incorrectly.
If the potentiometer center tab was wired wrong, you shouldn't get "Joy 2 Left" or "Joy 2 Right" mapped to an input.
- Check Windows Control Panel -- Devices and Printers -- right-click the game controller icon -- game controller settings -- properties to confirm that the pedal is working correctly.

Pretty sure that the only way your current setup could be mis-wired is if the axis moves in the opposite direction desired.
- If that is the case, swap the wires on potentiometer tabs 1 and 3 (5v and ground) or you can reverse the axis in the MAME "Analog Controls" menu.


Scott

Retro77

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 45
  • Last login:September 29, 2023, 08:50:10 am
  • I want to build my own arcade controls!
Re: Is there a workaround for MAME pot issue
« Reply #4 on: February 10, 2021, 04:37:41 pm »
Thanks for the tip. This is my first cab build, so assumed that was normal behaviour.

The pedals look to be working normally in Windows.