use std::collections::HashMap;
pub enum Direction {
Left, Right, Up, Down
}
pub enum Key {
Letter(char),
Number(u8),
Escape,
Function(u8),
Control {
left: bool
},
Shift {
left: bool
},
Alternate {
left: bool
},
System,
Arrow {
direction: Direction
},
Semilicon,
Comma,
Period,
Quote,
Slash,
Backslash,
Tilde,
Equal,
Hyphen,
Space,
Enter,
Backspace,
Tab,
PageUp,
PageDown,
LeftBracket,
RightBracket,
Menu,
End,
Home,
Insert,
Delete,
Pause,
Numpad(u8),
Add,
Subtract,
Multiply,
Divide,
Unknown(u32)
}
pub struct Modifiers {
pub control: bool,
pub shift: bool,
pub alternate: bool,
pub system: bool
}
pub struct Keyboard {
pressed_keys: HashMap<Key, ()>
}
impl Keyboard {
pub fn is_key_pressed(&self) -> bool {
false
}
pub fn is_connected() -> bool {
false
}
}