From cd041adc38b6d8c94d33e4614e7c71592136b999 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 30 Jul 2020 19:30:24 +0200 Subject: [PATCH] Add `winit` event loop --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e7a11a969..02dd96bfd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,9 @@ +use winit::event_loop::EventLoop; + fn main() { - println!("Hello, world!"); + let event_loop = EventLoop::new(); + + event_loop.run(move |event, _, _| { + println!("{:?}", event); + }) }