diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 13:35:02 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-04 13:35:02 +0100 |
commit | bb16c32bde58cba70e4877aa2d3ebd04332eb575 (patch) | |
tree | de3d82cca043c26cbaa64837a3b2c18efc6ddb64 /commands/commands.h | |
parent | 411d2f6d6a6e5370d33f0f54b2f2de7147a9d977 (diff) |
linux compile and imgs
Diffstat (limited to 'commands/commands.h')
-rw-r--r-- | commands/commands.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/commands/commands.h b/commands/commands.h index 5513790..020f186 100644 --- a/commands/commands.h +++ b/commands/commands.h @@ -1,30 +1,30 @@ -#ifndef COMMANDS_H -#define COMMANDS_H - -#include <iostream> -#include <vector> - -#define SDL_MAIN_HANDLED -#include <SDL2/SDL.h> - -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]; - - int resx, resy; - - private: - std::vector<SDL_Scancode> keys; - std::vector<SDL_Scancode> keysdown; -}; - +#ifndef COMMANDS_H
+#define COMMANDS_H
+
+#include <iostream>
+#include <vector>
+
+#define SDL_MAIN_HANDLED
+#include <SDL2/SDL.h>
+
+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];
+
+ int resx, resy;
+
+ private:
+ std::vector<SDL_Scancode> keys;
+ std::vector<SDL_Scancode> keysdown;
+};
+
#endif
\ No newline at end of file |