From f0807fc44dde14531759306317611bab87c8fccf Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 19 Oct 2020 09:13:58 +0800 Subject: +gamelab proj --- Runtime/Input/Input.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Runtime/Input/Input.h (limited to 'Runtime/Input/Input.h') 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 -- cgit v1.1-26-g67d0