aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Event.h4
-rw-r--r--src/crepe/api/KeyCodes.h2
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