Implement WindowEvent ModifiersChanged for X11 and Wayland (#1132)
* Implement WindowEvent ModifiersChanged for X11 and Wayland * Fix modifier key state desync on X11 * Run cargo fmt
This commit is contained in:
parent
bfcd85ab15
commit
206c3c246c
6 changed files with 258 additions and 19 deletions
|
|
@ -133,6 +133,9 @@ pub enum WindowEvent {
|
|||
input: KeyboardInput,
|
||||
},
|
||||
|
||||
/// Keyboard modifiers have changed
|
||||
ModifiersChanged { modifiers: ModifiersState },
|
||||
|
||||
/// The cursor has moved on the window.
|
||||
CursorMoved {
|
||||
device_id: DeviceId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue