pub trait Control {
    type Timestamp;
    type Event;
    type Error;

    fn update(
        &mut self,
        now: Self::Timestamp
    ) -> Result<Self::Event, Self::Error>; }
Expand description

Represents a control, such as debounced input, button, encoder and etc.

Required Associated Types

Required Methods

Update a control and return an current event or error after update.

now - the current timestamp upon update invoke.

Implementors