Skip to content

feat: Context-Aware Input Policy Pipeline with Decoupled UI Command Dispatch#314

Open
mverch67 wants to merge 19 commits into
masterfrom
input-policy
Open

feat: Context-Aware Input Policy Pipeline with Decoupled UI Command Dispatch#314
mverch67 wants to merge 19 commits into
masterfrom
input-policy

Conversation

@mverch67
Copy link
Copy Markdown
Collaborator

@mverch67 mverch67 commented May 18, 2026

  • input handling is now policy-driven and context-aware, so the same keys can adapt to focused UI state instead of hard-coded per-driver behavior

  • the new pipeline cleanly separates key source, key-to-action mapping, policy evaluation, and UI command dispatch, which reduces coupling and makes behavior easier to extend

  • it also adds support for dedicated command keys and structured event decisions (pass, remap, consume, emit command/sequence) for predictable, testable input behavior

E.g. a keyboard with cursor keys can now use the cursor keys to navigate the map (context-aware) or move inside text input areas. ESC key to leave this mode.

Note:
As a usage example the new classes are used within the KeyMatrixInputDriver (PICOmputer). See also here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant