RustAudio / baseview

low-level window system interface for audio plugin UIs
Apache License 2.0
267 stars 57 forks source link

Add the active keyboard modifiers to the mouse events #117

Closed robbert-vdh closed 1 year ago

robbert-vdh commented 2 years ago

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.

robbert-vdh commented 2 years ago

I've rebased this on the master branch now that #115 has been merged.