Struct event_loop::WindowEvents
[−]
[src]
pub struct WindowEvents { // some fields omitted }
An event loop iterator
Warning: Because the iterator polls events from the window back-end, it must be used on the same thread as the window back-end (usually main thread), unless the window back-end supports multi-thread event polling.
Methods
impl WindowEvents
fn new() -> WindowEvents
Creates a new event iterator with default UPS and FPS settings.
fn next<W>(&mut self, window: &mut W) -> Option<Event<W::Event>> where W: Window
Returns the next game event.