From da3b5b2131d2b4ff5cb127e92090fca568376835 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Wed, 24 May 2023 10:28:49 +1200 Subject: in-progress: Config refactor started, changed all existing keybind command args and added in the new files, still many errors --- keybinds.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 keybinds.h (limited to 'keybinds.h') 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 +#include + +#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 binds; + bool exitNow; + CommandsModule& commandsModule; +}; -- cgit v1.2.3