Base working commit with a UI thread (Tokio), Network thread (Tokio), and an input events thread (std).

This commit is contained in:
Dark-Alex-17 committed 2023-08-08 10:50:03 -06:00
1 parent f436a66069
commit 0d4e283c21
15 files changed
+532 -1

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
use crate::event::Key;
macro_rules! generate_keybindings {
($($field:ident),+) => {
pub struct KeyBindings {
$(pub $field: KeyBinding),+
}
};
}
generate_keybindings! {
quit
}
pub struct KeyBinding {
key: Key,
desc: &'static str
}
pub const DEFAULT_KEYBINDINGS: KeyBindings = KeyBindings {
quit: KeyBinding {
key: Key::Char('q'),
desc: "Quit",
}
};