-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol_glfw.h
More file actions
46 lines (41 loc) · 745 Bytes
/
Copy pathcontrol_glfw.h
File metadata and controls
46 lines (41 loc) · 745 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
#ifndef control_glfw_h
#define control_glfw_h
#include "gfx_glfw.h"
#include "common.h"
#include "control.h"
#include "clstuff.h"
class GlfwControl: public Control
{
bool w;
bool a;
bool s;
bool d;
bool shift;
bool ctrl;
bool alt;
bool lmouse;
bool rmouse;
#ifdef USE_ROCKET
bool processingRocket;
#endif
int ox;
int oy;
int nx;
int ny;
Glfwgfx* gfx;
public:
void mouseCall( int button, int action, int mods );
GlfwControl( RTContext* rtcontext, Glfwgfx* gfx
#ifdef USE_ROCKET
,Rocket::Core::Context* rContext
#endif
);
void keyboardAction( void );
void mouseAction( void );
void mouseMotion( void );
void actions( void );
unsigned postactions( void );
unsigned timeMillis( void );
void move( void );
};
#endif