diff options
Diffstat (limited to 'src/crepe/api/Event.h')
-rw-r--r-- | src/crepe/api/Event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crepe/api/Event.h b/src/crepe/api/Event.h index d3e99af..d222e51 100644 --- a/src/crepe/api/Event.h +++ b/src/crepe/api/Event.h @@ -2,9 +2,12 @@ // TODO discussing the location of these events #include <string> +#include <unordered_map> + #include "KeyCodes.h" #include "types.h" + namespace crepe { /** @@ -22,6 +25,7 @@ public: //! The key that was pressed. Keycode key = Keycode::NONE; + keyboard_state_t keyboard_state; }; /** @@ -31,6 +35,7 @@ class KeyReleaseEvent : public Event { public: //! The key that was released. Keycode key = Keycode::NONE; + keyboard_state_t keyboard_state; }; /** |