aboutsummaryrefslogtreecommitdiff
path: root/commands/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'commands/commands.h')
-rw-r--r--commands/commands.h58
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