Add Windows support for handle_event

This commit is contained in:
Lars Bergstrom 2016-01-07 07:27:41 -06:00
parent 721693c43e
commit c65598907e

View file

@ -285,7 +285,7 @@ impl Window {
self.event_queue.borrow_mut().push(WindowEvent::MouseWindowEventClass(event));
}
#[cfg(target_os = "macos")]
#[cfg(any(target_os = "macos", target_os = "windows"))]
fn handle_next_event(&self) -> bool {
let event = self.window.wait_events().next().unwrap();
let mut close = self.handle_window_event(event);