pub trait KeyboardControlled {
// Required method
fn handle_keypress(&mut self, k: KeyPress) -> Result<Option<KeyPress>>;
}
Expand description
Something that can respond to user KeyPress events
pub trait KeyboardControlled {
// Required method
fn handle_keypress(&mut self, k: KeyPress) -> Result<Option<KeyPress>>;
}
Something that can respond to user KeyPress events