diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index f589070..218ef96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,5 +21,16 @@ pub fn main() { canvas.clear(); canvas.present(); - loop {} + let mut sdl_event_pump = sdl_context + .event_pump() + .expect("Couldn't get the SDL2 event pump!"); + loop { + for event in sdl_event_pump.wait_iter() { + match event { + _ => { + println!("Event!"); + } + } + } + } } |