Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
yage
data
input.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#ifdef _WIN32
13
#ifdef DELETE
14
#define YAGE_DELETE_TMP DELETE
15
#undef DELETE
16
#endif
17
#endif
18
19
#define GLFW_INCLUDE_NONE
20
#include <GLFW/glfw3.h>
21
22
namespace
yage
23
{
24
25
enum class
key
{
26
// unknown key
27
UNKNOWN
= GLFW_KEY_UNKNOWN,
28
29
// actual keys
30
SPACE
= GLFW_KEY_SPACE,
31
APOSTROPHE
= GLFW_KEY_APOSTROPHE,
/* ' */
32
COMMA
= GLFW_KEY_COMMA,
/* , */
33
MINUS
= GLFW_KEY_MINUS,
/* - */
34
PERIOD
= GLFW_KEY_PERIOD,
/* . */
35
SLASH
= GLFW_KEY_SLASH,
/* / */
36
NUM0
= GLFW_KEY_0,
37
NUM1
= GLFW_KEY_1,
38
NUM2
= GLFW_KEY_2,
39
NUM3
= GLFW_KEY_3,
40
NUM4
= GLFW_KEY_4,
41
NUM5
= GLFW_KEY_5,
42
NUM6
= GLFW_KEY_6,
43
NUM7
= GLFW_KEY_7,
44
NUM8
= GLFW_KEY_8,
45
NUM9
= GLFW_KEY_9,
46
SEMICOLON
= GLFW_KEY_SEMICOLON,
/* ; */
47
EQUAL
= GLFW_KEY_EQUAL,
/* = */
48
A
= GLFW_KEY_A,
49
B
= GLFW_KEY_B,
50
C
= GLFW_KEY_C,
51
D
= GLFW_KEY_D,
52
E
= GLFW_KEY_E,
53
F
= GLFW_KEY_F,
54
G
= GLFW_KEY_G,
55
H
= GLFW_KEY_H,
56
I
= GLFW_KEY_I,
57
J
= GLFW_KEY_J,
58
K
= GLFW_KEY_K,
59
L
= GLFW_KEY_L,
60
M
= GLFW_KEY_M,
61
N
= GLFW_KEY_N,
62
O
= GLFW_KEY_O,
63
P
= GLFW_KEY_P,
64
Q
= GLFW_KEY_Q,
65
R
= GLFW_KEY_R,
66
S
= GLFW_KEY_S,
67
T
= GLFW_KEY_T,
68
U
= GLFW_KEY_U,
69
V
= GLFW_KEY_V,
70
W
= GLFW_KEY_W,
71
X
= GLFW_KEY_X,
72
Y
= GLFW_KEY_Y,
73
Z
= GLFW_KEY_Z,
74
LEfT_BRACKET
= GLFW_KEY_LEFT_BRACKET,
/* [ */
75
BACKSLASH
= GLFW_KEY_BACKSLASH,
/* \ */
76
RIGHT_BRACKET
= GLFW_KEY_RIGHT_BRACKET,
/* ] */
77
GRAVE_ACCENT
= GLFW_KEY_GRAVE_ACCENT,
/* ` */
78
WORLD_1
= GLFW_KEY_WORLD_1,
/* non-US #1 */
79
WORLD_2
= GLFW_KEY_WORLD_2,
/* non-US #2 */
80
81
// function keys
82
ESCAPE
= GLFW_KEY_ESCAPE,
83
ENTER
= GLFW_KEY_ENTER,
84
TAB
= GLFW_KEY_TAB,
85
BACKSPACE
= GLFW_KEY_BACKSPACE,
86
INSERT
= GLFW_KEY_INSERT,
87
DELETE
= GLFW_KEY_DELETE,
88
RIGHT
= GLFW_KEY_RIGHT,
89
LEFT
= GLFW_KEY_LEFT,
90
DOWN
= GLFW_KEY_DOWN,
91
UP
= GLFW_KEY_UP,
92
PAGE_UP
= GLFW_KEY_PAGE_UP,
93
PAGE_DOWN
= GLFW_KEY_PAGE_DOWN,
94
HOME
= GLFW_KEY_HOME,
95
END
= GLFW_KEY_END,
96
CAPS_LOCK
= GLFW_KEY_CAPS_LOCK,
97
SCROLL_LOCK
= GLFW_KEY_SCROLL_LOCK,
98
NUM_LOCK
= GLFW_KEY_NUM_LOCK,
99
PRINT_SCREEN
= GLFW_KEY_PRINT_SCREEN,
100
PAUSE
= GLFW_KEY_PAUSE,
101
F1
= GLFW_KEY_F1,
102
F2
= GLFW_KEY_F2,
103
F3
= GLFW_KEY_F3,
104
F4
= GLFW_KEY_F4,
105
F5
= GLFW_KEY_F5,
106
F6
= GLFW_KEY_F6,
107
F7
= GLFW_KEY_F7,
108
F8
= GLFW_KEY_F8,
109
F9
= GLFW_KEY_F9,
110
F10
= GLFW_KEY_F10,
111
F11
= GLFW_KEY_F11,
112
F12
= GLFW_KEY_F12,
113
F13
= GLFW_KEY_F13,
114
F14
= GLFW_KEY_F14,
115
F15
= GLFW_KEY_F15,
116
F16
= GLFW_KEY_F16,
117
F17
= GLFW_KEY_F17,
118
F18
= GLFW_KEY_F18,
119
F19
= GLFW_KEY_F19,
120
F20
= GLFW_KEY_F20,
121
F21
= GLFW_KEY_F21,
122
F22
= GLFW_KEY_F22,
123
F23
= GLFW_KEY_F23,
124
F24
= GLFW_KEY_F24,
125
F25
= GLFW_KEY_F25,
126
KP_0
= GLFW_KEY_KP_0,
127
KP_1
= GLFW_KEY_KP_1,
128
KP_2
= GLFW_KEY_KP_2,
129
KP_3
= GLFW_KEY_KP_3,
130
KP_4
= GLFW_KEY_KP_4,
131
KP_5
= GLFW_KEY_KP_5,
132
KP_6
= GLFW_KEY_KP_6,
133
KP_7
= GLFW_KEY_KP_7,
134
KP_8
= GLFW_KEY_KP_8,
135
KP_9
= GLFW_KEY_KP_9,
136
KP_DECIMAL
= GLFW_KEY_KP_DECIMAL,
137
KP_DIVIDE
= GLFW_KEY_KP_DIVIDE,
138
KP_MULTIPLY
= GLFW_KEY_KP_MULTIPLY,
139
KP_SUBTRACT
= GLFW_KEY_KP_SUBTRACT,
140
KP_ADD
= GLFW_KEY_KP_ADD,
141
KP_ENTER
= GLFW_KEY_KP_ENTER,
142
KP_EQUAL
= GLFW_KEY_KP_EQUAL,
143
LEFT_SHIFT
= GLFW_KEY_LEFT_SHIFT,
144
LEFT_CONTROL
= GLFW_KEY_LEFT_CONTROL,
145
LEFT_ALT
= GLFW_KEY_LEFT_ALT,
146
LEFT_SUPER
= GLFW_KEY_LEFT_SUPER,
147
RIGHT_SHIFT
= GLFW_KEY_RIGHT_SHIFT,
148
RIGHT_CONTROL
= GLFW_KEY_RIGHT_CONTROL,
149
RIGHT_ALT
= GLFW_KEY_RIGHT_ALT,
150
RIGHT_SUPER
= GLFW_KEY_RIGHT_SUPER,
151
MENU
= GLFW_KEY_MENU,
152
153
LAST
= GLFW_KEY_LAST,
154
};
155
156
}
// namespace yage
157
158
#ifdef _WIN32
159
#ifdef YAGE_DELETE_TMP
160
#define DELETE YAGE_DELETE_TMP
161
#undef YAGE_DELETE_TMP
162
#endif
163
#endif
yage::key::LEFT_ALT
yage::key::KP_ADD
yage::key::L
yage::key::F19
yage::key::BACKSLASH
yage::key::WORLD_2
yage::key::LEFT_SUPER
yage::key::F9
yage::key::KP_DIVIDE
yage::key::LEFT_CONTROL
yage::key::CAPS_LOCK
yage::key::UNKNOWN
yage::key::M
yage::key::TAB
yage::key::MENU
yage::key::KP_1
yage::key::LEFT
yage::key::F25
yage::key::UP
yage::key::SPACE
yage::key::NUM2
yage::key::F20
yage::key::PAGE_DOWN
yage::key::RIGHT_CONTROL
yage::key::F13
yage::key::F12
yage::key::F18
yage::key::NUM4
yage::key::F8
yage::key::KP_5
yage::key::NUM_LOCK
yage::key::R
yage::key::NUM9
yage::key::B
yage::key::K
yage::key::KP_2
yage::key::COMMA
yage::key::KP_ENTER
yage::key::Q
yage::key::BACKSPACE
yage::key::KP_EQUAL
yage::key::NUM7
yage::key::W
yage::key::WORLD_1
yage::key::RIGHT_BRACKET
yage::key::F4
yage::key::KP_SUBTRACT
yage::key::F23
yage::key::F14
yage::key::SEMICOLON
yage::key::F11
yage::key::NUM0
yage::key::F22
yage::key::J
yage::key::H
yage::key::A
yage::key::LEFT_SHIFT
yage::key::KP_3
yage::key::NUM1
yage::key::GRAVE_ACCENT
yage::key::Z
yage::key::X
yage::key::I
yage::key::PRINT_SCREEN
yage::key::NUM5
yage::key::F7
yage::key::F3
yage::key::F1
yage::key::KP_7
yage::key::NUM8
yage::key::NUM6
yage::key::V
yage::key::P
yage::key::RIGHT_ALT
yage::key::KP_MULTIPLY
yage::key::NUM3
yage::key::RIGHT
yage::key::EQUAL
yage::key::F6
yage::key::KP_9
yage::key::KP_6
yage::key::KP_4
yage::key::KP_8
yage::key::F
yage::key::ENTER
yage::key::MINUS
yage::key::PAGE_UP
yage::key::T
yage::key::N
yage::key::PERIOD
yage::key::D
yage::key::F17
yage::key::F2
yage::key::E
yage::key::F15
yage::key::DOWN
yage::key::KP_DECIMAL
yage::key::LAST
yage::key::RIGHT_SUPER
yage::key::PAUSE
yage::key::INSERT
yage::key::RIGHT_SHIFT
yage::key
key
Definition:
input.h:25
yage::key::S
yage::key::DELETE
yage::key::SCROLL_LOCK
yage::key::SLASH
yage::key::F21
yage::key::C
yage::key::G
yage::key::O
yage::key::APOSTROPHE
yage::key::END
yage::key::U
yage::key::F10
yage::key::Y
yage::key::LEfT_BRACKET
yage::key::ESCAPE
yage::key::HOME
yage::key::F16
yage::key::F24
yage::key::KP_0
yage::key::F5
Generated on Sat Jun 23 2018 15:09:53 by
1.8.6