aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/inputmanager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/YAGE/inputmanager.hpp')
-rw-r--r--include/YAGE/inputmanager.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/YAGE/inputmanager.hpp b/include/YAGE/inputmanager.hpp
new file mode 100644
index 00000000..7f49c3b3
--- /dev/null
+++ b/include/YAGE/inputmanager.hpp
@@ -0,0 +1,23 @@
+#ifndef INPUT_MANAGER_HPP
+#define INPUT_MANAGER_HPP
+
+#include <unordered_map>
+
+namespace yage
+{
+
+class InputManager
+{
+ // member variables
+private:
+ std::unordered_map<unsigned, bool> key_map_;
+
+ // member functions
+public:
+ void keyPressed(unsigned key);
+ void keyReleased(unsigned key);
+ bool isKeyPressed(unsigned key) const;
+};
+
+}
+#endif