Here is a quick overview for positional guns that I posted elsewhere.
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)
Hooking them up isn't all that complicated.
The gun should have a potentiometer for each axis, just like an analog joystick.
The potentiometers each have 3 tabs: power on one side, wiper in the middle, and ground on the other side.
The wiper is the one that the interface board uses to determine the position, so think of it as reporting the position.
(The U-HID is just measuring voltage from it. Older interfaces sometimes measured resistance instead.)
If the axis works backwards, flip power and ground to it.
There should be diagrams in the U-HID instructions.
Is the gun from a Gunblade NY machine?
Unfortunately it won't work directly on Sega Model 2 Emulator, but it probably will work if using the helper programs Troubleshooter 2 or Demulshooter.
It will work fine with Supermodel emulator, although the only positional gun game on that is The Ocean Hunter and it was too glitchy to play with the last version I tried. (EDIT: Forgot LA Machineguns also runs on Supermodel emulator)
This is from YEARS ago:
http://www.flickr.com/photos/25643351@N07/4886932428/#secret2e9a647964The gun is currently boxed up and in the closet.