aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Event.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 17:46:21 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-12 17:46:21 +0100
commit6e2aa75019a28c298454f50b7bfb0dca100e0936 (patch)
tree7975a5c57956b472b9ad1a4e46d846239714bc79 /src/crepe/api/Event.h
parent44cab6ad59d257d949112dcd4a9e0bdc9302e92b (diff)
save
Diffstat (limited to 'src/crepe/api/Event.h')
-rw-r--r--src/crepe/api/Event.h5
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;
};
/**