Add StartCause::Init support, timer example

This commit is contained in:
Osspial
2018-08-17 17:49:46 -04:00
parent 02f922f003
commit a0b2bb3695
2 changed files with 34 additions and 0 deletions

View File

@@ -172,6 +172,7 @@ impl EventLoop {
let mut msg = mem::uninitialized();
event_handler(Event::NewEvents(StartCause::Init), &event_loop, &mut control_flow);
'main: loop {
macro_rules! call_event_handler {
($event:expr) => {{