Update winit to 0.22
This commit is contained in:
parent
5a91b52ef4
commit
aac7ad3e14
3 changed files with 9 additions and 14 deletions
|
|
@ -347,6 +347,9 @@ pub trait Application: Sized {
|
|||
WindowEvent::CloseRequested => {
|
||||
*control_flow = ControlFlow::Exit;
|
||||
}
|
||||
WindowEvent::ModifiersChanged(new_modifiers) => {
|
||||
modifiers = new_modifiers;
|
||||
}
|
||||
#[cfg(target_os = "macos")]
|
||||
WindowEvent::KeyboardInput {
|
||||
input:
|
||||
|
|
@ -382,12 +385,6 @@ pub trait Application: Sized {
|
|||
events.push(event);
|
||||
}
|
||||
}
|
||||
event::Event::DeviceEvent {
|
||||
event: event::DeviceEvent::ModifiersChanged(new_modifiers),
|
||||
..
|
||||
} => {
|
||||
modifiers = new_modifiers;
|
||||
}
|
||||
_ => {
|
||||
*control_flow = ControlFlow::Wait;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue