diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-12 17:46:21 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-12 17:46:21 +0100 |
commit | 6e2aa75019a28c298454f50b7bfb0dca100e0936 (patch) | |
tree | 7975a5c57956b472b9ad1a4e46d846239714bc79 /src/crepe/api/KeyCodes.h | |
parent | 44cab6ad59d257d949112dcd4a9e0bdc9302e92b (diff) |
save
Diffstat (limited to 'src/crepe/api/KeyCodes.h')
-rw-r--r-- | src/crepe/api/KeyCodes.h | 5 |
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 |