Docs / CONTROLLER-MATRIX
Controller verification — what is actually verified (item 214)
Source: docs/CONTROLLER-MATRIX.md
Full matrix, commands, timestamps and evidence inventory: tests/controller-matrix/REPORT.md.
Run on 2026-11-29 from worktree gc-controller-hy4 at base a710b81. Nothing was pushed.
PASS below means a real press and release reached the player's input boundary with the correct
logical button and no other button firing, in a real browser against a real Kiri sandbox; engine
logs and before/idle/after screenshots are stored in the report. It is not a certification of
physical hardware.
Verified
| Path | Where | Evidence |
|---|---|---|
| Keyboard | 14 engine × runtime combinations: in-container jsnes (NES), browser jsnes (NES) and EmulatorJS 4.2.3 snes9x (SNES), each on Chrome 158, Chromium 156, Firefox 157, WebKit 27.2 and the native Electron 38 Kitty player window (Firefox has no EmulatorJS row) | tests/controller-matrix/evidence/*-after-report.json |
| Gamepad API | Same 14 combinations, using a synthetic W3C standard-layout pad injected into navigator.getGamepads(); not a physical device |
same reports; captured shell and EJS/WebSocket engine events |
| On-screen pad | Same 14 combinations, real pointer events on the rendered #virtual-pad buttons |
same reports, with screenshots |
| Phone QR | NES stream engine, simulated phone browser on the LAN bridge; QR independently decoded, emulator input events 0 → 2, frame changed 17.2% (earlier proof, not re-run) | tests/virtual-controller/evidence/report.md and its PNG/JSON/log files |
| Desktop suite | 406/406 tests pass when local npm/Python dependencies are present. A bare suite in a dependency-free fresh worktree gives 389 pass / 12 fail / 5 skip (missing yaml and jsonschema) |
tests/controller-matrix/data/desktop-test*.log |
One real failure was found and fixed: the shared player shell mapped standard gamepad indices
2/3 to SELECT/START (they are X/Y) and ignored X/Y/L/R. templates/_shared/player-shell/shell.js
now uses the W3C standard mapping; all 29 generated player pages and 13 registry pins were
regenerated. The pre-fix and post-fix JSON reports show Gamepad API FAIL → PASS on all engines.
Not verified (no PASS claimed)
- Physical gamepads — Xbox Wireless Controller and Stadia Controller are paired on this Mac
but not connected; no physical actuation was available. Only the injected standard pad was used. - Physical phone / real QR scan — the phone proof used a simulated phone browser.
- EmulatorJS on Firefox — this host's Firefox rejects the EmulatorJS CDN with
SSL_ERROR_UNKNOWN; the engine never starts, so no input path was exercised. The other six
Firefox cells PASS. - Safari proper — WebKit 27.2 was exercised, not the Safari app.
- N64 frame engine and the other registry EmulatorJS platforms — no sandboxes were created
for them in this run. - Phone QR outside NES stream / Chrome — not exercised on other engines, browsers or devices.
- EmulatorJS native keyboard/gamepad handlers — they fire alongside Kitty's hook and deliver
extrasimulateInputindices (recorded asnativeExtrasin the reports). This predates the fix;
suppressing it changes emulator behaviour and needs an owner decision, so it is documented,
not changed. - Game-state response on a few cells — where the canvas did not change above idle drift
(notably the jsnes on-screen pad), input delivery is proven by the engine log and no gameplay
response is claimed.

