Trait input::IdleEvent [] [src]

pub trait IdleEvent: Sized {
    fn from_idle_args(args: &IdleArgs, old_event: &Self) -> Option<Self>;
fn idle<U, F>(&self, f: F) -> Option<U>
    where
        F: FnMut(&IdleArgs) -> U
; fn from_dt(dt: f64, old_event: &Self) -> Option<Self> { ... }
fn idle_args(&self) -> Option<IdleArgs> { ... } }

When background tasks should be performed

Required Methods

Creates an idle event.

Calls closure if this is an idle event.

Provided Methods

Creates an update event with delta time.

Returns idle arguments.

Implementors