onMouseLeftHold and onMouseRightHold are declared and in the consumer notes, and no backend fires them #196

Open
opened 2026-11-17 06:45:46 +00:00 by jorijnvdgraaf · 0 comments

Summary

Window::onMouseLeftHold and Window::onMouseRightHold are declared, and AGENTS.consumer.md lists them among the Window events a consumer can subscribe to, but no backend ever invokes either. A listener on them is never called. Line numbers refer to c006519.

Details

  • interfaces/Crafter.Graphics-Window.cppm:113-114: Event<void> onMouseRightHold; and Event<void> onMouseLeftHold;.
  • AGENTS.consumer.md:131: "onMouseLeftClick, onMouseLeftHold, onMouseLeftRelease and the right-button trio (mouseLeftHeld, mouseRightHeld)".
  • git grep -n 'onMouseLeftHold\|onMouseRightHold' at c006519 finds those three lines and nothing else: no Invoke in implementations/, none in additional/, no use in the examples or in Input.

The state a consumer would want from them is there: mouseLeftHeld and mouseRightHeld are kept by every backend.

Found in the pre-push review of 364d210..c006519, by the commit-truth lens reading the consumer notes. It is older than that range.

Suggested fix

Either remove the two events and their mention in AGENTS.consumer.md (design rule 11: the clean breaking change; nothing in this tree subscribes to them), or fire them, once per update while the button is held, on every backend, and say when in the notes.

## Summary `Window::onMouseLeftHold` and `Window::onMouseRightHold` are declared, and `AGENTS.consumer.md` lists them among the `Window` events a consumer can subscribe to, but no backend ever invokes either. A listener on them is never called. Line numbers refer to `c006519`. ## Details - `interfaces/Crafter.Graphics-Window.cppm:113-114`: `Event<void> onMouseRightHold;` and `Event<void> onMouseLeftHold;`. - `AGENTS.consumer.md:131`: "`onMouseLeftClick`, `onMouseLeftHold`, `onMouseLeftRelease` and the right-button trio (`mouseLeftHeld`, `mouseRightHeld`)". - `git grep -n 'onMouseLeftHold\|onMouseRightHold'` at `c006519` finds those three lines and nothing else: no `Invoke` in `implementations/`, none in `additional/`, no use in the examples or in `Input`. The state a consumer would want from them is there: `mouseLeftHeld` and `mouseRightHeld` are kept by every backend. Found in the pre-push review of 364d210..c006519, by the commit-truth lens reading the consumer notes. It is older than that range. ## Suggested fix Either remove the two events and their mention in `AGENTS.consumer.md` (design rule 11: the clean breaking change; nothing in this tree subscribes to them), or fire them, once per update while the button is held, on every backend, and say when in the notes.
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
Catcrafts/Crafter.Graphics#196
No description provided.