ui-hud-focus
UI HUD Focus
This skill owns focus/input ownership handoff and focus restoration. ui-flow owns screen state; input-design owns semantic actions/bindings; browser-input owns browser lifecycle events.
Modes
| Mode | Focus model |
|---|---|
| play-hud | gameplay owns actions; HUD is non-interactive presentation |
| pause-stack | top interactive modal/screen owns UI actions |
| pad-cursor | virtual pointer/cursor participates in the focus model |
| safe-area | focusable/critical HUD stays in the published visible region |
Focus contract
On transition into an interactive UI state, record the prior focus owner/element when restoration is meaningful, release or suspend gameplay action reads according to the input context, then establish one explicit focus target. On close, restore to the recorded valid target or an authored fallback; do not dump held/buffered gameplay actions.
Keyboard/D-pad focus must be visible and not obscured by authored UI. Pointer, virtual cursor and keyboard focus may be unified or distinct by project policy, but simultaneous indicators must represent real owners rather than accidental duplicate highlight state.