I just thought I would pass along the fact that the act labs pc usb light gun works wonderfully in AdvanceMame .87. I didn't try multiple lightguns, but I'm sure it would work. One thing that really impressed me was that I was able to use a lightgun for player 1 and a trackball for player 2. Oddly enough, AdvanceMame (and Xmame) treat the lightgun as a joystick. I found it convenient because that way it doesn't get mixed in with my mouse devices when I'm trying to configure mame.
--------------- LINUX ---------------
The gun uses the linux kernel "event" driver.
The devices are stored in "/dev/input/".
My lightgun is /dev/input/event1. Test each of the event devices with the command, "cat /dev/input/eventX" (replace X with the device #) and moving your devices until you see action. When you cat the device and wiggle/fire/roll the cat'ed device around, garbage will print on the screen and that's how you'll know which one is which. Devices might be joysticks, keyboards, mice, (etc). My system only has 4 eventX devices. (I haven't tried, but there is a command to add additional devices... Something involving "mknod").
I killed the "gpm" process sometimes just in case, but it wasn't necessary. Gpm is the console mouse daemon.
I have a custom compiled kernel. Some key items that I compiled (mostly as modules) include:
Joystick interface
Event interface
(NOT touchscreen interface)
Mice - InKernel, ps/2 mouse
(NOT joysticks)
(NOT touchscreens)
Support for Host-side USB
USB device filesystem
OHCI HDC support
UHCI HCD support
USB HID support
HID input layer support
/dev/hiddev raw HID device support
These may not ALL be necessary, and there may be important ones that I left out, but these worked for me.
------------ AdvanceMame 0.87 ---------------
my advmame.rc file needed the line, "device_joystick event"
In the game settings, I map the fire button to j:left by shooting AT THE CENTER of the screen (calibrate first). Shooting to the sides registers as though you are moving the joystick to on side. (I know that doesn't make much sense, but if you try it I think you'll see what I mean).
That's all there was to it! So far I've only tried Police Trainer, and it works great.
(I also tried it with 0.77 also, and it ALMOST worked - accuracy was off)