Enum piston::input::Event
[−]
pub enum Event<I = Input> { Render(RenderArgs), AfterRender(AfterRenderArgs), Update(UpdateArgs), Idle(IdleArgs), Input(I), }
Adds render and update events to input events
Variants
Render(RenderArgs)
Render graphics.
AfterRender(AfterRenderArgs)
After rendering and swapping buffers.
Update(UpdateArgs)
Update the state of the application.
Idle(IdleArgs)
Do background tasks that can be done incrementally.
Input(I)
Input event.
Trait Implementations
impl<I> GenericEvent for Event<I> where I: GenericEvent
fn event_id(&self) -> EventId
The id of this event.
fn with_args<F, U>(&'a self, f: F) -> U where F: FnMut(&Any + 'static) -> U
Calls closure with arguments
fn from_args(event_id: EventId, any: &Any + 'static, old_event: &Event<I>) -> Option<Event<I>>
Converts from arguments to Self