This commit is contained in:
Daniel Collin 2021-10-23 11:40:04 +02:00
parent deb235507f
commit 05cb97aeb0

View file

@ -100,12 +100,10 @@ fn main() {
println!("Menu id {} pressed", menu_id);
});
window.get_keys().iter().for_each(|key| {
match key {
Key::W => println!("holding w!"),
Key::T => println!("holding t!"),
_ => (),
}
window.get_keys().iter().for_each(|key| match key {
Key::W => println!("holding w!"),
Key::T => println!("holding t!"),
_ => (),
});
// We unwrap here as we want this code to exit if it fails