aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/KeyCodes.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 13:27:08 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 13:27:08 +0100
commit438f5301d8b14fa53fef73a4356f4a5171ac91af (patch)
treee3b0e4389c620a9b1d7224a7c390293c2ea01321 /src/crepe/api/KeyCodes.h
parent644c1ee1a1f109ae293cc6b09fafe8ba8b448ff3 (diff)
parenta03f90fa9bcbd5a0c5b5d1f2e50df183c7c3640c (diff)
more WIP demo
Diffstat (limited to 'src/crepe/api/KeyCodes.h')
-rw-r--r--src/crepe/api/KeyCodes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crepe/api/KeyCodes.h b/src/crepe/api/KeyCodes.h
index fcfc080..748e8f6 100644
--- a/src/crepe/api/KeyCodes.h
+++ b/src/crepe/api/KeyCodes.h
@@ -1,5 +1,9 @@
#pragma once
+
+#include <unordered_map>
+
namespace crepe {
+
//! Enumeration for mouse button inputs, including standard and extended buttons.
enum class MouseButton {
NONE = 0, //!< No mouse button input.
@@ -151,4 +155,7 @@ enum class Keycode {
/// \}
MENU = 348, //!< Menu key.
};
+
+typedef std::unordered_map<Keycode, bool> keyboard_state_t;
+
} // namespace crepe