diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-05-24 10:28:49 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-05-24 10:28:49 +1200 |
| commit | da3b5b2131d2b4ff5cb127e92090fca568376835 (patch) | |
| tree | 3c3ca1dbb19683a22eefde705f2d8ac4d62ffdc3 /keybinds.h | |
| parent | 6655d5dfb24ca3fd36b02550c526bca1f5d924e9 (diff) | |
| download | YATwm-da3b5b2131d2b4ff5cb127e92090fca568376835.tar.gz YATwm-da3b5b2131d2b4ff5cb127e92090fca568376835.zip | |
in-progress: Config refactor started, changed all existing keybind command args and added in the new files, still many errors
Diffstat (limited to 'keybinds.h')
| -rw-r--r-- | keybinds.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/keybinds.h b/keybinds.h new file mode 100644 index 0000000..d26b7a1 --- /dev/null +++ b/keybinds.h @@ -0,0 +1,19 @@ +#pragma once + +#include <unordered_map> +#include <string> + +#include "commands.h" + +class KeybindsModule { + public: + KeybindsModule(CommandsModule& commandsModule); + ~KeybindsModule() = default; + const void bind(const CommandArg* argv); + const void readBinds(const CommandArg* argv); + const void exit(const CommandArg* argv); + private: + std::unordered_map<std::string, std::string> binds; + bool exitNow; + CommandsModule& commandsModule; +}; |
