-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeybuffer.hpp
More file actions
46 lines (37 loc) · 786 Bytes
/
Copy pathkeybuffer.hpp
File metadata and controls
46 lines (37 loc) · 786 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#if 0
#include <deque>
//#include <SDL.h>
struct SDL_keysym;
struct Keystroke
{
//Keystroke(int keycode, bool isDown) { this->keycode = keycode; this->isDown = isDown; }
//long keycode;
Keystroke(SDL_keysym keycode, bool isDown)
{
this->keycode = keycode;
this->isDown = isDown;
}
SDL_keysym keycode;
bool isDown;
};
struct Mouseclick
{
Mouseclick(Uint8 button, bool isPressed)
{
this->button = button;
this->isPressed = isPressed;
}
Uint8 button;
bool isPressed;
};
//#define Keystroke_Mouse1 -1
//#define Keystroke_Mouse2 -2
//#define Keystroke_Mouse3 -3
//enum button_code
//{
// button_mouse1 = -1,
// button_mouse2 = -2,
// button_mouse3 = -3
//};
extern std::deque<Mouseclick> mouseBuffer;
#endif