Fix M9.8d review findings in binding capture

Arming capture drops the toolkit's held keys/modifiers and queued keyboard
input; the chosen key stays owned until release or focus loss so its repeats,
text and release reach neither toolkit nor world. Idle toolkit frames run when
nothing is drawn and the toolkit queue is bounded. Controls host logic moves to
ControlsFlow with an Apply -> save -> restart -> load rehearsal; key test events
now carry realistic keycodes and modifiers with positive controls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-02 16:07:09 -04:00
co-authored by Claude Opus 5.5
parent 5cf8709912
commit 14e676426f
8 changed files with 512 additions and 89 deletions
@@ -62,3 +62,13 @@ events. A file edited by hand can still choose awkward but valid keys.
## Consequences
`Application` gains binding and capture APIs; host, panels, docs and tests change
together. Future player controls need a separate product ADR.
## M9.8d review corrections
Binding capture now also balances the toolkit: arming capture drops the toolkit's
keyboard state and queued keyboard/text input (keys and modifiers whose releases
capture will consume), and the chosen physical key stays owned until its release or
focus loss, so its repeats, text and release reach neither toolkit nor world (text
is suppressed while it is held). The adapter runs an idle toolkit frame when nothing
is drawn and bounds the toolkit input queue at 512 events (dropped with every
toolkit key/button released). The Controls host logic lives in
`apps/evo-client/controls_flow.hpp` and is rehearsed with the real adapter.