Add M9.8d rebindable engineering controls
SDL-free action/HID-key bindings with conflict validation, a staging editor and a versioned all-or-nothing controls file (ADR-0085). The adapter maps keys through the bindings, releases and drains on rebinding, and captures the chosen key ahead of the toolkit and world. The client adds a Controls panel, key hints, startup loading with a bounded rejection notice, and --controls/--show-controls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,9 +55,14 @@ Use `poll_events()` -> read current window/navigation -> update camera ->
|
||||
`step(frame)` retains the combined poll/present convenience for lifecycle tests.
|
||||
Focus loss, hidden/minimized/closed/failed/zero-area state, or UI capture clears
|
||||
held state. A fresh non-repeat keydown is needed to re-arm; releases always
|
||||
clear keys. UI code calls `set_ui_capture` before world polling. Tab toggles an
|
||||
engineering capture mode in the adapter; repeats do not retoggle it. Window
|
||||
close remains available while captured.
|
||||
clear keys. UI code calls `set_ui_capture` before world polling. The
|
||||
toggle-capture action (default Tab) toggles an engineering capture mode in the
|
||||
adapter; repeats do not retoggle it. Window close remains available while captured.
|
||||
|
||||
M9.8d (ADR-0085): keys reach `InputState` only through the current `Bindings`
|
||||
(defaults: WASD move, arrows pan, Tab toggles capture). `set_bindings` releases
|
||||
held actions and drains queued input; binding capture consumes the chosen key
|
||||
before the toolkit and world. Releasing either key of an action releases it.
|
||||
|
||||
A 256-event saturated batch clears admission. Remaining queued keydowns are
|
||||
ignored until a later poll drains the backlog; the drained state remains neutral
|
||||
|
||||
Reference in New Issue
Block a user