-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add the active keyboard modifiers to the mouse events #117
Merged
wrl
merged 2 commits into
RustAudio:master
from
robbert-vdh:feature/mouse-event-modifiers
Sep 22, 2022
Merged
Add the active keyboard modifiers to the mouse events #117
wrl
merged 2 commits into
RustAudio:master
from
robbert-vdh:feature/mouse-event-modifiers
Sep 22, 2022
Conversation
This file contains 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
robbert-vdh
added a commit
to robbert-vdh/nih-plug
that referenced
this pull request
Feb 9, 2022
This has been fixed by RustAudio/baseview#117.
robbert-vdh
force-pushed
the
feature/mouse-event-modifiers
branch
from
February 10, 2022 02:15
4bfe910
to
a8ef4dd
Compare
robbert-vdh
changed the title
Feature/mouse event modifiers
Add the active keyboard modifiers to the mouse events
Feb 10, 2022
robbert-vdh
force-pushed
the
feature/mouse-event-modifiers
branch
from
March 7, 2022 18:53
a8ef4dd
to
8e7f854
Compare
I've rebased this on the master branch now that #115 has been merged. |
robbert-vdh
force-pushed
the
feature/mouse-event-modifiers
branch
from
March 11, 2022 20:16
8e7f854
to
39b2f75
Compare
Since this isn't emitted anywhere, this can only lead to confusion for library consumers. They'd need to implement their own click detection with the button up and button down events.
This would solve the most important use case for RustAudio#116. Only the Linux version has been tested, but the Windows should work perfectly fine, and I don't know anything about macOS programming but that version also compiles so it should be fine.
robbert-vdh
force-pushed
the
feature/mouse-event-modifiers
branch
from
March 11, 2022 21:59
39b2f75
to
5b57af2
Compare
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 17, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 18, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 18, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 19, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 19, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 20, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 21, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 21, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 21, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 25, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 27, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Mar 27, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 7, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 19, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 19, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 19, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 24, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 26, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Apr 26, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Jun 17, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Jun 18, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Sep 22, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
robbert-vdh
added a commit
to robbert-vdh/vizia
that referenced
this pull request
Sep 22, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
rhelmot
pushed a commit
to vizia/vizia
that referenced
this pull request
Sep 24, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
geom3trik
pushed a commit
to vizia/vizia
that referenced
this pull request
Sep 26, 2022
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
geom3trik
added a commit
to vizia/vizia
that referenced
this pull request
Sep 27, 2022
* Add tabview + example * Fix for disabled state style matching The disabled state was being ignored when performing the optimization which skips style matching when siblings have the same selector. This resulted in disabled siblings being ignored. Fixed by applying the disabled state to the selector. * impl res for option * Fix warning * Add class to describing labels and add hand cursor to theme (#224) * Add rays and Event::take. it does not work WEH Message is dead; long live Message (it works) fmt Bikeshed Rename Ray to Setter; add derive(Model) Switch a few examples to Model/Setter * Make text child-space calculation more intuitive; fix some dpi bugs (#226) * Make text child-space calculation more intuitive; fix some dpi bugs * fmt * Bump copypasta (#228) * Make window events not read or write state until it is their turn in line fmt Freshen up the window events Freshen focus events Un-consume fresh events after de-freshening De-freshen, root-ify * Fix textbox mouse interaction in hidpi * Add ctrl-shift-alt-S to print matched style rules for hovered element * Sync fonts before event loop Fixes bug on MacOS where redraw occurs before fonts are synced. * Temporarily remove book link Closes #234 * Set modifiers on baseview mouse events (#236) Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value. * Add main widow before calling build closure (baseview) * Force restyle on every frame to avoid style inheritance issues * Expose `style` in `EventCotext` to allow getting/setting style properties in response to events * Consume `MouseDown` event when double or triple clicked * Export `GeneratioalId` through prelude to allow constructing `Entity::root()` * Add root element selector for styling root window * Add `:root` pseudoclass selector * Add tabview + example * Tabview styling (#239) * tabview styling * white theme * dark theme default Co-authored-by: Audrey Dutcher <[email protected]> Co-authored-by: Robbert van der Helm <[email protected]> Co-authored-by: Lunae Somnia <[email protected]>
5eqn
pushed a commit
to 5eqn/vizia
that referenced
this pull request
Nov 11, 2024
Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value.
5eqn
pushed a commit
to 5eqn/vizia
that referenced
this pull request
Nov 11, 2024
* Add tabview + example * Fix for disabled state style matching The disabled state was being ignored when performing the optimization which skips style matching when siblings have the same selector. This resulted in disabled siblings being ignored. Fixed by applying the disabled state to the selector. * impl res for option * Fix warning * Add class to describing labels and add hand cursor to theme (vizia#224) * Add rays and Event::take. it does not work WEH Message is dead; long live Message (it works) fmt Bikeshed Rename Ray to Setter; add derive(Model) Switch a few examples to Model/Setter * Make text child-space calculation more intuitive; fix some dpi bugs (vizia#226) * Make text child-space calculation more intuitive; fix some dpi bugs * fmt * Bump copypasta (vizia#228) * Make window events not read or write state until it is their turn in line fmt Freshen up the window events Freshen focus events Un-consume fresh events after de-freshening De-freshen, root-ify * Fix textbox mouse interaction in hidpi * Add ctrl-shift-alt-S to print matched style rules for hovered element * Sync fonts before event loop Fixes bug on MacOS where redraw occurs before fonts are synced. * Temporarily remove book link Closes vizia#234 * Set modifiers on baseview mouse events (vizia#236) Using the changes from RustAudio/baseview#117. Until baseview implements proper keyboard focus handling this helps when dragging a knob or slider outside of the window. Otherwise the modifier state may get stuck on an incorrect value. * Add main widow before calling build closure (baseview) * Force restyle on every frame to avoid style inheritance issues * Expose `style` in `EventCotext` to allow getting/setting style properties in response to events * Consume `MouseDown` event when double or triple clicked * Export `GeneratioalId` through prelude to allow constructing `Entity::root()` * Add root element selector for styling root window * Add `:root` pseudoclass selector * Add tabview + example * Tabview styling (vizia#239) * tabview styling * white theme * dark theme default Co-authored-by: Audrey Dutcher <[email protected]> Co-authored-by: Robbert van der Helm <[email protected]> Co-authored-by: Lunae Somnia <[email protected]>
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.
This builds on top of #115, so I marked this as a draft until that has been merged.
Every mouse event now has a modifier field containing the current keyboard modifiers. Most window management APIs work like this, and it solves things like #116 by making sure that whenever a window receives a mouse event, it also knows the up to date keyboard modifier status.