use super::Key;
#[derive(Default, Clone, Debug)]
pub struct KeyboardEvent {
pub key: Option<Key>,
pub id: i32,
}
impl KeyboardEvent {
pub fn new() -> Self {
Self { id: 0, key: None }
}
pub fn init(&mut self, id: i32, key: Option<Key>) {
self.id = id;
self.key = key;
}
}