add controls reset

This commit is contained in:
ChancellorIkseew
2024-10-31 20:57:56 +10:00
parent d46afee063
commit 0733ddb38e
6 changed files with 40 additions and 8 deletions
+7 -1
View File
@@ -9,6 +9,11 @@
inline constexpr short KEYS_BUFFER_SIZE = 1036;
enum class BindType {
BIND = 0,
REBIND = 1
};
class Events {
static bool keys[KEYS_BUFFER_SIZE];
static uint frames[KEYS_BUFFER_SIZE];
@@ -52,6 +57,7 @@ public:
static std::string writeBindings();
static void loadBindings(
const std::string& filename, const std::string& source
const std::string& filename, const std::string& source,
BindType bindType
);
};