release: v0.23.0 — InputEvent sealed interface (ADR-058) - #23
Merged
Conversation
…ResizeEvent (ADR-058) Sealed InputEvent interface with inputEventTag() marker — only gpucontext types implement it. Enables exhaustive handling via linters. New types: KeyEvent (Key + Mods + Pressed), CharEvent (Char rune), FocusEvent (Focused bool), ResizeEvent (Width, Height int). Existing types PointerEvent and ScrollEvent gain inputEventTag() method. Total: 6 event types for SDL-style PollInputEvent queue (ADR-058). 8 test cases covering interface satisfaction, type switch, field access.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[0.23.0] - 2026-07-30
Added
InputEventsealed interface (ADR-058) — unified event type for SDL-style event queue. Sealed via unexportedinputEventTag()marker. Enables exhaustive type switch handling.KeyEventstruct — keyboard key state change (Key, Modifiers, Pressed)CharEventstruct — committed text input (Char rune)FocusEventstruct — window focus state change (Focused bool)ResizeEventstruct — window content area size change (Width, Height in logical DIP)PointerEventandScrollEventnow implementInputEventinterfaceEnterprise research: Qt6, SDL3, winit, Flutter, Bevy, Gio, Ebiten — 7 frameworks analyzed.