Main > Main Forum

Analog guns with U-HID ---- configuration options?

Pages: (1/2) > >>

jhuie:

I am in the process of converting a Lucky & Wild game to Mame.  It has analog (potentiometer) guns which I have mapped to a U-HID device so they appear to be analog joysticks on a game controller.  I downloaded the latest version of Mame and they seem to work ok except two things:

1) When you move them near the center of the screen, the cursors will jump or snap to the center and stick there until you move quite away from the center again.  So the center of the screen is basically "sticky".  I'd like the movement to be smooth from one side to the other without jumping to the center each time.

2) The guns aren't quite pointing exactly at the cursor.  They are off by maybe an inch.

Has anyone out there done this who can explain how to calibrate these and fix these issues?  I've looked around quite a bit but haven't found much on the subject.  At least nothing recent that is using a current Mame version.

Thank you!

John

TheShanMan:

What you're running into sounds like a joystick's dead zone. I don't recall off hand, but you might check the windows joystick configuration to see if there's a setting there. I know there's a setting in MAME, but I don't know what the ini setting is off-hand. Someone may chime in with that, or you can always run MameUI and set it in the options dialog there, and then see what it corresponds to in the ini file.

Neverending Project:

I haven't used the U-HID before, but I did come across the following page on it's website:
http://www.u-hid.com/index.php?option=com_content&view=article&id=4&Itemid=9

Basically, it says there is an Offset setting in the second page of the GUI of the U-Config program. This may help with your offset of an inch that you are seeing.

u_rebelscum:

1.  Set mame's deadzone to a lower number.  Mame's default is 0.3 (aka 30%), which is fine for gamepad thumbsticks, but too big for a high quality analog joystick.  Depending on the game and how "clean" your pots are, I suggest between 0% and 5% (0.0 - 0.05 in mame.ini).

jhuie:

Oooooh, I get it now.   The dead zone is intended to make an analog joystick work like a 4-way or 8-way stick by having a region in the middle that's blanked out.  That makes sense.  But since I'm using it for guns I don't need (or want) it to work that way so I should set it to zero.  I'll try it.  Thanks guys!

Now to figure out how to better align the guns with the screen.....

Pages: (1/2) > >>

Go to full version