-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScreenCallbacks.h
101 lines (88 loc) · 1.32 KB
/
ScreenCallbacks.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#include <functional>
#include "Def.h"
NSP_STD
#pragma once
class ResizeCallback //needs identification
{
public:
ResizeCallback()
{
}
void operator()(int width, int height)
{
onCallback( width, height);
}
private:
void onCallback(int width, int height)
{
return;
}
};
#pragma once
class KeyCallback //needs identification
{
public:
KeyCallback()
{
}
void operator()(char button, char action, char mods)
{
onCallback( button, action, mods);
}
private:
void onCallback(char button, char action, char mods)
{
return;
}
};
#pragma once
class MouseMoveCallback //needs identification
{
public:
MouseMoveCallback()
{
}
void operator()(double posX, double posY, double x, double y)
{
onCallback( posX, posY, x, y);
}
private:
void onCallback(double posX, double posY, double x, double y)
{
return;
}
};
#pragma once
class MouseButtonCallback //needs identification
{
public:
MouseButtonCallback()
{
}
void operator()(char button, char action, char mods)
{
onCallback( button, action, mods);
}
private:
void onCallback(char button, char action, char mods)
{
return;
}
};
#pragma once
class ScrollCallback //needs identification
{
public:
ScrollCallback()
{
}
void operator()(double x, double y)
{
onCallback(x, y);
}
private:
void onCallback(double x, double y)
{
return;
}
};