At one point I wrote my own MAME frontend that worked with an Act Labs lightgun. Since that lightgun can be configured to provide a cursor location and click, it was pretty straightforward.
It was a fun setup--I had it so you could shoot the marquee of the game you wanted to play, and it would leave bullet holes too.