-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
additional mouse_enter
and mouse_exit
functions?
#61
Comments
hey maintainer can I work on the issue |
Not the maintainer, but if you want get started, I recommend looking at how else's [canvas.mouse] object works: |
This comment has been minimized.
This comment has been minimized.
just noting here that in this context, it might be also nice to report the |
Yes, I agree with this. I think the plugdata version might actually already do this, since this is how mouse events behave in JUCE. It's good if we can guarantee that every "mouse_down" will be followed by a "mouse_up", it makes it easier to write dragging logic. edit: |
This comment has been minimized.
This comment has been minimized.
tested this again here and i'm a bit irritated since i can't confirm it. this differs between plugdata and puredata though. attaching a simple test object and patch: mouse_test.zip |
This comment has been minimized.
This comment has been minimized.
i created #70 now as a first draft for Pd vanilla. but it really feels a bit hacky with that canvas message proxy ... 2025-01-16.22-29-28.mp4some details (possibly for discussion):
|
the
mouse_move(x, y)
callback can be used to create hover feedback in pdlua GUI objects.unfortunately, this has one major restriction though: the position is only reported on changes inside the object box and these changes are not necessarily reporting continuous coordinates. so there's no way to reliably determine whether the mouse has left the object area (or "crossed a border").
one option to deal with this might be additional functions. i learnt that @timothyschoen had these implemented some time ago and then removed them again since they seemed slightly hacky for vanilla. maybe they could be reconsidered though since they would allow for some additional interaction patterns.
one question in this context is whether
mouse_enter
andmouse_exit
could also be achieved easily with purr data?The text was updated successfully, but these errors were encountered: