Move ModifiersChanged variant to WindowEvent

This commit is contained in:
Murarth
2020-01-08 20:22:38 -07:00
parent 09c4ed0694
commit ed348f231e
6 changed files with 109 additions and 63 deletions

View File

@@ -38,6 +38,7 @@ fn main() {
_ => (),
}
}
WindowEvent::ModifiersChanged(m) => modifiers = m,
_ => (),
},
Event::DeviceEvent { event, .. } => match event {
@@ -46,7 +47,6 @@ fn main() {
ElementState::Pressed => println!("mouse button {} pressed", button),
ElementState::Released => println!("mouse button {} released", button),
},
DeviceEvent::ModifiersChanged(m) => modifiers = m,
_ => (),
},
_ => (),