pub trait Keyboard {
type KeyboardStateType: KeyboardState;
// Required methods
fn is_down(&mut self, vk: i32) -> bool;
fn set_down(&mut self, vk: i32, down: bool);
fn state(&mut self) -> Result<Self::KeyboardStateType>;
}
pub trait Keyboard {
type KeyboardStateType: KeyboardState;
// Required methods
fn is_down(&mut self, vk: i32) -> bool;
fn set_down(&mut self, vk: i32, down: bool);
fn state(&mut self) -> Result<Self::KeyboardStateType>;
}