format example
This commit is contained in:
parent
b2f2b2a251
commit
225cbab22a
|
@ -13,9 +13,7 @@ impl WindowHandler for MyProgram {
|
|||
|
||||
fn on_event(&mut self, _window: &mut Window, event: Event) {
|
||||
match event {
|
||||
Event::Mouse(e) => {
|
||||
println!("Mouse event: {:?}", e);
|
||||
},
|
||||
Event::Mouse(e) => { println!("Mouse event: {:?}", e); },
|
||||
Event::Keyboard(e) => println!("Keyboard event: {:?}", e),
|
||||
Event::Window(e) => println!("Window event: {:?}", e),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue