Use an xbox controller with MAME for light gun games?
Solution 1:
In MAME's "Configure Machine" -> "Device Mapping" settings change the "LightGun Device Assignment" from Keyboard to Mouse. Trying to use Keyboard or a Joystick is near impossible beyond the first level of any game. You can change this per game or for all games.