diff options
author | chai <chaifix@163.com> | 2020-09-10 20:30:31 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-09-10 20:30:31 +0800 |
commit | 639b34294ffc20721c66db46e59e07d9100ac4b8 (patch) | |
tree | 7e1d45b536fa35e9f1559e468ea66fca99524573 /Runner/Input/Input.h |
*init
Diffstat (limited to 'Runner/Input/Input.h')
-rw-r--r-- | Runner/Input/Input.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Runner/Input/Input.h b/Runner/Input/Input.h new file mode 100644 index 0000000..5612e74 --- /dev/null +++ b/Runner/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 |