The light gun contains a camera ... Processing is handled by the host computer running MAME and the requisite coordinates are fed back in to the game code. The basic concept seems sound, though ...
The blasters work great with common platforms like MAME and RetroPi as the Ultramarc hardware emulates a standard USB mouse. We’ve seen some wild light gun hacks before, like this build that ...