Struct ggez::event::Events [−][src]
pub struct Events(_);
A handle to access the OS's event pump.
Methods
impl Events
[src]
impl Events
pub fn new(ctx: &Context) -> GameResult<Events>
[src]
pub fn new(ctx: &Context) -> GameResult<Events>
Create a new Events object.
ⓘImportant traits for EventPollIterator<'a>pub fn poll(&mut self) -> EventPollIterator
[src]
ⓘImportant traits for EventPollIterator<'a>
pub fn poll(&mut self) -> EventPollIterator
Get an iterator for all events.