IR LIGHTGUN / USB INPUT
X-GUNNER on MiSTer
An unknown controller is not always a new protocol. The X-GUNNER receiver exposes familiar USB interfaces, but MiSTer needs to know that its absolute mouse coordinates belong to a lightgun.
- Focus
- USB device integration
- Tools
- C++ · Linux input · MiSTer
- Status
- Public test package
Identify what the receiver reports
The tested P1 receiver appears as keyboard, mouse and joystick-style interfaces. Its mouse interface carries absolute X/Y coordinates from 0 to 32767; several buttons arrive as keyboard or mouse-button events. Treating it as an ordinary mouse is not sufficient.

Teach MiSTer what it is
The Main_MiSTer patch recognizes vendor ID 1209 and product IDs 0001–0004, marks the device as a lightgun mouse and derives the player number from the product ID. Detection runs again after related input interfaces are merged, so it does not rely on a particular device name.
Calibration and core profiles
Raw axis events no longer advance calibration before a button press. Debounce delays prevent accidental skipping of calibration edges. The package adds maps and helper profiles for PlayStation, Saturn and other console/arcade cores. A physical Enter button is best remapped to a harmless key in the X-GUNNER GUI before binding it in MiSTer.
What has been verified?
Public test package. PlayStation and selected Saturn setups have direct testing notes, with Virtua Cop 2 working on Saturn_20251003. Newer/RA Saturn variants and several arcade cores have known issues. Additional mapped profiles require wider game testing; included maps alone do not establish compatibility.
Technical notes & project sources
Read the project README for installation, current limitations, supported revisions and validation details. Images above are labelled as screenshots, artwork or explanatory diagrams.
CHRISTOPH POTHMANN /
PORTFOLIO