Camera-based aiming with optional mouse / gamepad input, calibration (4-corner), targets, scoring & export.
Supports webcam IR-dots, mouse emulation guns, and gamepad/mouse HID guns.

View & Calibration

Calibration: click Calibrate, then click four corners on the video where the screen corners are (TL, TR, BR, BL). This computes a homography to convert camera points → screen coordinates.

Targets & Scoring

Click Spawn Target to place, or let Start Session spawn targets automatically. Aim and press trigger/click to score.

Controls & Status

Selected input:
Calibration points collected: 0
Gamepad:
Session log
Ready
Session stats
Shots:0\nHits:0\nAccuracy:0%

Notes

Camera mode assumes the gun emits an IR/bright dot that the camera can see. Calibration maps camera coordinates onto the screen rectangle. Mouse & Gamepad modes use raw device coordinates. Browser access to the camera and Gamepad API required.