Implement M9.3 camera navigation and bounded input intentions

This commit is contained in:
dingo
2026-10-01 17:26:35 -04:00
parent 04c7715646
commit bb0412cd0f
19 changed files with 899 additions and 27 deletions
+44
View File
@@ -3240,3 +3240,47 @@ boundary requires single-main-thread use. Tests do not establish physical
multi-monitor DPI, real keyboard/focus behavior, Wayland, hardware GPU loss or
human visual acceptance. Those remain M9.3/M9.8 qualification work. No cluster
operation was performed.
## M9.3 camera and input intentions — 2026-10-01
Implemented ADR-0079 and CAMERA_INPUT.md: SDL-free local-mm camera and held input
state, explicit logical/pixel conversion, cursor-anchored zoom, bounded
sequence/tick intentions and polling-before-projection. The app demonstrates
arrows/wheel navigation, a WASD intention indicator and Tab UI capture. Its tick
is a local fixture counter; no server/session/authoritative movement is present.
Executed:
- Windows MSVC 19.44 Release via `tools/windows-check.ps1 -Preset client -Action
check`: 3/3 labeled tests passed. Native Windows lifecycle/input executable
and the final `evo-client --frames 3` smoke passed.
- Linux GCC 14 Release, existing combined probe/client build: 5/5 labeled tests
passed; native Xvfb/X11 lifecycle and input events passed. The final app-only
startup/error-reporting adjustment was additionally built/tested with MSVC and
Clang ASan below (the GCC suite preceded that adjustment).
- Clang 19 Debug ASan/UBSan: all owned camera/input/platform/app/test code built;
3/3 labeled tests and native Xvfb/X11 tests passed with leak detection enabled,
without preload or suppressions. Final hidden/software three-frame app smoke
also passed. SDL/system libraries remain outside comprehensive instrumentation.
- Pure camera tests cover 220 world/logical/pixel round trips over four viewport/
DPI/aspect combinations and five zoom scales (1e-6 mm tolerance for fixtures),
anchor preservation, pan direction, resize stability, NaN/infinity, numeric
limits and unchanged state after rejected operations.
- Input tests cover key release/opposites/diagonals, focus re-arm, ignored repeats,
UI capture, bounded/consumed wheel accumulation, invalid input, monotonically
increasing sequence/tick and stale/overflow rejection. Native SDL tests cover
WASD/arrows, Tab repeat, focus loss/regain, wheel direction/pointer, minimize,
saturated event batches and queued keys crossing external capture release.
- clang-tidy 19 with warnings-as-errors passed on all six changed/new translation
units; corrected a duplicated wheel-error branch. Final app-only adjustment
also passed analysis. Repository format-check passed.
- Headless Release configured with both client options OFF, rebuilt `evo-sim`,
replayed seed 123456 / eight entities / 1000 ticks: unchanged
`d61ad5bf0c928c76`, `replay_verified=true`.
The existing client CI target now picks up the controls library and expanded
lifecycle suite automatically. Docker/Gitea execution was not observed locally.
No full headless suite or TSan rerun; owned client state remains main-thread-only.
No physical keyboard/IME, human visual, real multi-monitor DPI, Wayland or real
GPU-failure qualification is claimed from injected events and Xvfb. No network
traffic, database, world mutation or deployment operation was introduced.