A WebGPU retro game engine for TypeScript, inspired by RetroBlit. Build pixel-perfect 2D games with a clean, fantasy-console-style API.

feat(input): implement gamepad input system with bitmask button api master

Add a full Gamepad API-backed input subsystem with per-frame snapshots, dead-zone-filtered axes, player connectivity helpers, and repeat-capable button edge detection. Migrate BTN_* constants to bit flags, merge keyboard+gamepad semantics for players 0/1, keep players 2/3 gamepad-only, and update tests/docs to reflect the new input contract. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Vaclav Vancura <commit@vancura.dev>