blob: 665c8b69592c04cf29efabac2f4dfdaeb7d10cfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#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];
private:
std::vector<SDL_Scancode> keys;
std::vector<SDL_Scancode> keysdown;
};
#endif
|