Back to Provenance

3206

.changelog/3206.md

3.3.11.3 KB
Original Source

Added

  • LightGunResponder protocol — New LightGunResponder protocol in PVCoreBridge lets cores declare light gun support (gameSupportsLightGun, requiresLightGun) and receive normalised aim coordinates plus button events (trigger, reload, aux-A/B, start, select).
  • GCMouseLightGunDriver — Driver that accumulates GCMouse (USB/Bluetooth HID) relative delta events into a normalised [0,1]² cursor position and forwards events to any LightGunResponder core. UI wiring (auto-attach on game launch) is a follow-up; the driver must be attached manually for now.
  • Thin libretro light gun bridgePVThinLibretroFrontend now handles RETRO_DEVICE_LIGHTGUN in thin_input_state, returning screen-X/Y, trigger, reload, aux-A/B, start, select, and d-pad queries from stored state updated via the new setLightgunX:y:... bridge method.
  • Light gun system registry — NES, SNES, Genesis, PSX, Saturn, MAME, and Atari 2600 are pre-registered as light-gun-capable via SystemIdentifier.supportsLightGun; PVThinLibretroCore advertises gameSupportsLightGun via the LightGunResponder protocol.
  • Light gun mouse sensitivity settingPVSettings.lightGunMouseSensitivity (0.1–5.0, default 1.0) scales GCMouse delta accumulation; stored in UserDefaults.