From bb16c32bde58cba70e4877aa2d3ebd04332eb575 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Tue, 4 Jan 2022 13:35:02 +0100 Subject: linux compile and imgs --- commands/commands.h | 58 ++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'commands/commands.h') 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 -#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]; - - int resx, resy; - - private: - std::vector keys; - std::vector keysdown; -}; - +#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]; + + int resx, resy; + + private: + std::vector keys; + std::vector keysdown; +}; + #endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf