summaryrefslogtreecommitdiff
path: root/Runtime/Input/Input.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-19 09:13:58 +0800
committerchai <chaifix@163.com>2020-10-19 09:13:58 +0800
commitf0807fc44dde14531759306317611bab87c8fccf (patch)
tree6e78fed61c16a70cda5fa732635f89f9faac9720 /Runtime/Input/Input.h
parent639b34294ffc20721c66db46e59e07d9100ac4b8 (diff)
+gamelab proj
Diffstat (limited to 'Runtime/Input/Input.h')
-rw-r--r--Runtime/Input/Input.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Runtime/Input/Input.h b/Runtime/Input/Input.h
new file mode 100644
index 0000000..5612e74
--- /dev/null
+++ b/Runtime/Input/Input.h
@@ -0,0 +1,19 @@
+#ifndef INPUT_H
+#define INPUT_H
+
+#include "SDL2/SDL.h"
+
+class Input
+{
+public:
+ void PollEvent(SDL_Event& e);
+
+ bool IsKeyDown();
+ bool IsKeyUp();
+ bool IsKeyClick();
+
+};
+
+extern Input g_Input;
+
+#endif \ No newline at end of file