pub trait Control {
type Event;
type Error;
// Required method
fn update(&mut self) -> Result<Self::Event, Self::Error>;
}
Expand description
Represents a control, such as debounced input, button, encoder and etc.
pub trait Control {
type Event;
type Error;
// Required method
fn update(&mut self) -> Result<Self::Event, Self::Error>;
}
Represents a control, such as debounced input, button, encoder and etc.