aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/KeyCodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/KeyCodes.h')
-rw-r--r--src/crepe/api/KeyCodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/KeyCodes.h b/src/crepe/api/KeyCodes.h
index f704fbb..4a3bf57 100644
--- a/src/crepe/api/KeyCodes.h
+++ b/src/crepe/api/KeyCodes.h
@@ -1,4 +1,7 @@
#pragma once
+
+#include <unordered_map>
+
namespace crepe {
//! Enumeration for mouse button inputs, including standard and extended buttons.
enum class MouseButton {
@@ -153,4 +156,6 @@ typedef enum {
//! Not actually a key instead its the amount of keycodes there are for array indexing
NUM_KEYCODES = 512,
} Keycode;
+
+typedef std::unordered_map<Keycode, bool> keyboard_state_t;
} // namespace crepe