about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs13
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!");
+                }
+            }
+        }
+    }
 }