diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-13 08:16:48 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-13 08:16:48 +0100 |
commit | 193d5bf4d9577e63202cec45b21ed85a76a89f09 (patch) | |
tree | f25e2f1d0efebcb72e3c411f380222a84459e37a /src/crepe/api | |
parent | 6e2aa75019a28c298454f50b7bfb0dca100e0936 (diff) |
keyboard state implemented
Diffstat (limited to 'src/crepe/api')
-rw-r--r-- | src/crepe/api/Event.h | 4 | ||||
-rw-r--r-- | src/crepe/api/KeyCodes.h | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/crepe/api/Event.h b/src/crepe/api/Event.h index d222e51..66dd0cc 100644 --- a/src/crepe/api/Event.h +++ b/src/crepe/api/Event.h @@ -2,8 +2,6 @@ // TODO discussing the location of these events #include <string> -#include <unordered_map> - #include "KeyCodes.h" #include "types.h" @@ -25,7 +23,6 @@ public: //! The key that was pressed. Keycode key = Keycode::NONE; - keyboard_state_t keyboard_state; }; /** @@ -35,7 +32,6 @@ class KeyReleaseEvent : public Event { public: //! The key that was released. Keycode key = Keycode::NONE; - keyboard_state_t keyboard_state; }; /** diff --git a/src/crepe/api/KeyCodes.h b/src/crepe/api/KeyCodes.h index 4a3bf57..fa0d17c 100644 --- a/src/crepe/api/KeyCodes.h +++ b/src/crepe/api/KeyCodes.h @@ -157,5 +157,5 @@ typedef enum { NUM_KEYCODES = 512, } Keycode; -typedef std::unordered_map<Keycode, bool> keyboard_state_t; + } // namespace crepe |