[GH-ISSUE #6007] Native mods: raw mouse button pre/post events #1928

Closed
opened 2026-11-02 15:50:42 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xmilon on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6007

Originally assigned to: @Xmilon on GitHub.

🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally.

Part of #4953 InputEvent additions. Add native_mouse_button_pre(button, pressed, modifiers, canceled) before normal mouse button dispatch on any screen, plus native_mouse_button_post after accepted handling. Public counterparts: InputEvent.MouseButton.Pre/Post. Keep existing screen-specific hooks and native_key mouse notifications unchanged. Ignore synthetic pad/focus clicks. Keep physical button bookkeeping even when canceled. Pre cancellation prevents processing and Post; accepted events get Post even if screen handling returns early.

Validate player's pinned26.3 MouseHandler bytecode, cancellation/no-op/synthetic/press/release ordering regressions, client all-target Clippy.

🤖 Generated with Codex

Originally created by @Xmilon on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6007 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally. Part of #4953 InputEvent additions. Add native_mouse_button_pre(button, pressed, modifiers, canceled) before normal mouse button dispatch on any screen, plus native_mouse_button_post after accepted handling. Public counterparts: InputEvent.MouseButton.Pre/Post. Keep existing screen-specific hooks and native_key mouse notifications unchanged. Ignore synthetic pad/focus clicks. Keep physical button bookkeeping even when canceled. Pre cancellation prevents processing and Post; accepted events get Post even if screen handling returns early. Validate player's pinned26.3 MouseHandler bytecode, cancellation/no-op/synthetic/press/release ordering regressions, client all-target Clippy. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6559136844 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1928
No description provided.