[−][src]Trait input::UpdateEvent
When the application state should be updated.
Required methods
fn from_update_args(args: &UpdateArgs, old_event: &Self) -> Option<Self>
[−]
Creates an update event.
fn update<U, F>(&self, f: F) -> Option<U> where
F: FnMut(&UpdateArgs) -> U,
[−]
F: FnMut(&UpdateArgs) -> U,
Calls closure if this is an update event.
Provided methods
fn from_dt(dt: f64, old_event: &Self) -> Option<Self>
[−]
Creates an update event with delta time.
fn update_args(&self) -> Option<UpdateArgs>
[−]
Returns update arguments.