Add winit event loop

This commit is contained in:
Hanno Braun 2020-07-30 19:30:24 +02:00
parent ea54ec9ec4
commit cd041adc38

View File

@ -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);
})
}