From a8bcacc95045102e67f2feabbdddf79535837554 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Thu, 19 Aug 2021 18:46:51 +0200 Subject: forgot to make repo until now --- commands/commands.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 commands/commands.h (limited to 'commands/commands.h') diff --git a/commands/commands.h b/commands/commands.h new file mode 100644 index 0000000..665c8b6 --- /dev/null +++ b/commands/commands.h @@ -0,0 +1,28 @@ +#ifndef COMMANDS_H +#define COMMANDS_H + +#include +#include + +#define SDL_MAIN_HANDLED +#include + +class Commands_sdl { + public: + Commands_sdl (); + ~Commands_sdl (); + bool process_events (); + void process_clicks (); + void process_keys (); + bool check_keydown(SDL_Scancode key); + bool check_key(SDL_Scancode key); + int mx, my; + int mclick[3]; + int mheld[3]; + + private: + std::vector keys; + std::vector keysdown; +}; + +#endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf