I added a match arm for the Escape key.
This commit is contained in:
Adam Badawy 2015-10-24 21:39:13 -04:00
parent d6f44a7f56
commit 9493458b8e

View file

@ -50,6 +50,7 @@ fn main() {
match event { match event {
glutin::Event::Closed => break, glutin::Event::Closed => break,
glutin::Event::KeyboardInput(_, _, Some(glutin::VirtualKeyCode::Escape)) => break,
_ => () _ => ()
} }
} }