aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/inputmanager.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-04-04 21:47:16 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-04-04 21:47:16 +0100
commit905f72775fa91b0a467f3c0847c60cf0f85a6d80 (patch)
tree5aa86baf8ed06fd4af036d0bb6c0dbefb5498f9f /include/YAGE/inputmanager.hpp
parent55a1e0ad7c9d2661c266b2e767bfcb2f944e859f (diff)
downloadYAGE-905f72775fa91b0a467f3c0847c60cf0f85a6d80.tar.gz
YAGE-905f72775fa91b0a467f3c0847c60cf0f85a6d80.zip
Sprite batching workin
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