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: Revolution x guns with potentiometers and UHID trouble  (Read 1548 times)

0 Members and 1 Guest are viewing this topic.

Sumguy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 23, 2024, 03:35:26 pm
  • I want to build my own arcade controls!
Revolution x guns with potentiometers and UHID trouble
« on: October 20, 2024, 11:41:43 pm »
Hoping someone can help out with a problem I’m having with pots getting “stuck” in the middle.
I have a 3 player revolution x cabinet and my last pcb died so I’ve put mame in it. 
I used ultimarc uhid for the pots 2 per gun.
After a few days of fighting with it I finally got the guns all working but when you pass a spot on the screen pretty close to the center going up/down and left/right the cursor gets stuck and you have to like jerk the gun to get it past that spot.
Anybody ever have this problem?
I haven’t really been able to find any info on this kinda setup.
The uhid does have 2 sliders you can adjust
One for scale and one for offset.
I’m not sure what either of them do. Could one of them be my problem?
After finally getting everything working I was kinda afraid to change anything.

Thanks for any help.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Yesterday at 11:22:59 pm
  • Designated spam hunter
Re: Revolution x guns with potentiometers and UHID trouble
« Reply #1 on: October 21, 2024, 03:05:41 am »
when you pass a spot on the screen pretty close to the center going up/down and left/right the cursor gets stuck and you have to like jerk the gun to get it past that spot.
Sounds like maybe you haven't adjusted the deadzone in MAME.

BadMouth's advice regarding 270° wheels in racing cabs also applies to positional guns like yours since both use potentiometers.
                 For 270° wheels, set the joystick deadzone to .05 in the mame.ini file;
                 the default .3 means that you have to turn the wheel fairly far before it does anything.


Scott

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
Re: Revolution x guns with potentiometers and UHID trouble
« Reply #2 on: October 21, 2024, 02:11:18 pm »
Here is the setup procedure I posted like a decade ago, lol.
Quote
1.  Calibrate the positional gun in windows (game controllers) by pointing it along the edges of the screen.
2.  In mame.ini set the dead zone to zero.
3.  In mame.ini set the saturation to 1 (100%)
4.  Calibrate the gun in the game's service menu
5.  Adjust the sensetivity under analogue controls in MAME's in-game menu until the crosshairs don't lag behind the gun movement.
    (there is only ONE sensetivity setting, ignore all settings that include the word DIGITAL)

Saturation sets how far you have to turn the gun before MAME sees it as turned to the limit.  If set to .85, the game will see it as turned all the way when it is only 85% turned.
The game's in-game calibration menu corrects for it, but the old Exidy gun games do not have in game calibration.
You may be able to improve accuracy in those games by tweaking the saturation setting in the game's individual ini file.

The in game service menu is usually mapped to F2 in MAME, but some games are different, some had service switches that can be flipped via DIP switches in MAME's in game menu (TAB) and as stated, some old ones did not have a service menu.

« Last Edit: October 21, 2024, 02:16:30 pm by BadMouth »

Sumguy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:October 23, 2024, 03:35:26 pm
  • I want to build my own arcade controls!
Re: Revolution x guns with potentiometers and UHID trouble
« Reply #3 on: October 21, 2024, 03:26:53 pm »
That’s it! The dead zone fixed it
Thank you