GLUS
glus_glfw_es.h
Go to the documentation of this file.
1 /*
2  * GLUS - Modern OpenGL, OpenGL ES and OpenVG Utilities. Copyright (C) since 2010 Norbert Nopper
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef GLUS_GLFW_ES_H_
19 #define GLUS_GLFW_ES_H_
20 
21 //
22 // GLFW Start
23 //
29 #define GLFW_RELEASE 0
30 
33 #define GLFW_PRESS 1
34 
37 #define GLFW_REPEAT 2
38 
61 /* The unknown key */
62 #define GLFW_KEY_UNKNOWN -1
63 
64 /* Printable keys */
65 #define GLFW_KEY_SPACE 32
66 #define GLFW_KEY_APOSTROPHE 39 /* ' */
67 #define GLFW_KEY_COMMA 44 /* , */
68 #define GLFW_KEY_MINUS 45 /* - */
69 #define GLFW_KEY_PERIOD 46 /* . */
70 #define GLFW_KEY_SLASH 47 /* / */
71 #define GLFW_KEY_0 48
72 #define GLFW_KEY_1 49
73 #define GLFW_KEY_2 50
74 #define GLFW_KEY_3 51
75 #define GLFW_KEY_4 52
76 #define GLFW_KEY_5 53
77 #define GLFW_KEY_6 54
78 #define GLFW_KEY_7 55
79 #define GLFW_KEY_8 56
80 #define GLFW_KEY_9 57
81 #define GLFW_KEY_SEMICOLON 59 /* ; */
82 #define GLFW_KEY_EQUAL 61 /* = */
83 #define GLFW_KEY_A 65
84 #define GLFW_KEY_B 66
85 #define GLFW_KEY_C 67
86 #define GLFW_KEY_D 68
87 #define GLFW_KEY_E 69
88 #define GLFW_KEY_F 70
89 #define GLFW_KEY_G 71
90 #define GLFW_KEY_H 72
91 #define GLFW_KEY_I 73
92 #define GLFW_KEY_J 74
93 #define GLFW_KEY_K 75
94 #define GLFW_KEY_L 76
95 #define GLFW_KEY_M 77
96 #define GLFW_KEY_N 78
97 #define GLFW_KEY_O 79
98 #define GLFW_KEY_P 80
99 #define GLFW_KEY_Q 81
100 #define GLFW_KEY_R 82
101 #define GLFW_KEY_S 83
102 #define GLFW_KEY_T 84
103 #define GLFW_KEY_U 85
104 #define GLFW_KEY_V 86
105 #define GLFW_KEY_W 87
106 #define GLFW_KEY_X 88
107 #define GLFW_KEY_Y 89
108 #define GLFW_KEY_Z 90
109 #define GLFW_KEY_LEFT_BRACKET 91 /* [ */
110 #define GLFW_KEY_BACKSLASH 92 /* \ */
111 #define GLFW_KEY_RIGHT_BRACKET 93 /* ] */
112 #define GLFW_KEY_GRAVE_ACCENT 96 /* ` */
113 #define GLFW_KEY_WORLD_1 161 /* non-US #1 */
114 #define GLFW_KEY_WORLD_2 162 /* non-US #2 */
115 
116 /* Function keys */
117 #define GLFW_KEY_ESCAPE 256
118 #define GLFW_KEY_ENTER 257
119 #define GLFW_KEY_TAB 258
120 #define GLFW_KEY_BACKSPACE 259
121 #define GLFW_KEY_INSERT 260
122 #define GLFW_KEY_DELETE 261
123 #define GLFW_KEY_RIGHT 262
124 #define GLFW_KEY_LEFT 263
125 #define GLFW_KEY_DOWN 264
126 #define GLFW_KEY_UP 265
127 #define GLFW_KEY_PAGE_UP 266
128 #define GLFW_KEY_PAGE_DOWN 267
129 #define GLFW_KEY_HOME 268
130 #define GLFW_KEY_END 269
131 #define GLFW_KEY_CAPS_LOCK 280
132 #define GLFW_KEY_SCROLL_LOCK 281
133 #define GLFW_KEY_NUM_LOCK 282
134 #define GLFW_KEY_PRINT_SCREEN 283
135 #define GLFW_KEY_PAUSE 284
136 #define GLFW_KEY_F1 290
137 #define GLFW_KEY_F2 291
138 #define GLFW_KEY_F3 292
139 #define GLFW_KEY_F4 293
140 #define GLFW_KEY_F5 294
141 #define GLFW_KEY_F6 295
142 #define GLFW_KEY_F7 296
143 #define GLFW_KEY_F8 297
144 #define GLFW_KEY_F9 298
145 #define GLFW_KEY_F10 299
146 #define GLFW_KEY_F11 300
147 #define GLFW_KEY_F12 301
148 #define GLFW_KEY_F13 302
149 #define GLFW_KEY_F14 303
150 #define GLFW_KEY_F15 304
151 #define GLFW_KEY_F16 305
152 #define GLFW_KEY_F17 306
153 #define GLFW_KEY_F18 307
154 #define GLFW_KEY_F19 308
155 #define GLFW_KEY_F20 309
156 #define GLFW_KEY_F21 310
157 #define GLFW_KEY_F22 311
158 #define GLFW_KEY_F23 312
159 #define GLFW_KEY_F24 313
160 #define GLFW_KEY_F25 314
161 #define GLFW_KEY_KP_0 320
162 #define GLFW_KEY_KP_1 321
163 #define GLFW_KEY_KP_2 322
164 #define GLFW_KEY_KP_3 323
165 #define GLFW_KEY_KP_4 324
166 #define GLFW_KEY_KP_5 325
167 #define GLFW_KEY_KP_6 326
168 #define GLFW_KEY_KP_7 327
169 #define GLFW_KEY_KP_8 328
170 #define GLFW_KEY_KP_9 329
171 #define GLFW_KEY_KP_DECIMAL 330
172 #define GLFW_KEY_KP_DIVIDE 331
173 #define GLFW_KEY_KP_MULTIPLY 332
174 #define GLFW_KEY_KP_SUBTRACT 333
175 #define GLFW_KEY_KP_ADD 334
176 #define GLFW_KEY_KP_ENTER 335
177 #define GLFW_KEY_KP_EQUAL 336
178 #define GLFW_KEY_LEFT_SHIFT 340
179 #define GLFW_KEY_LEFT_CONTROL 341
180 #define GLFW_KEY_LEFT_ALT 342
181 #define GLFW_KEY_LEFT_SUPER 343
182 #define GLFW_KEY_RIGHT_SHIFT 344
183 #define GLFW_KEY_RIGHT_CONTROL 345
184 #define GLFW_KEY_RIGHT_ALT 346
185 #define GLFW_KEY_RIGHT_SUPER 347
186 #define GLFW_KEY_MENU 348
187 #define GLFW_KEY_LAST GLFW_KEY_MENU
188 
197 #define GLFW_MOD_SHIFT 0x0001
198 
200 #define GLFW_MOD_CONTROL 0x0002
201 
203 #define GLFW_MOD_ALT 0x0004
204 
206 #define GLFW_MOD_SUPER 0x0008
207 
213 #define GLFW_MOUSE_BUTTON_1 0
214 #define GLFW_MOUSE_BUTTON_2 1
215 #define GLFW_MOUSE_BUTTON_3 2
216 #define GLFW_MOUSE_BUTTON_4 3
217 #define GLFW_MOUSE_BUTTON_5 4
218 #define GLFW_MOUSE_BUTTON_6 5
219 #define GLFW_MOUSE_BUTTON_7 6
220 #define GLFW_MOUSE_BUTTON_8 7
221 #define GLFW_MOUSE_BUTTON_LAST GLFW_MOUSE_BUTTON_8
222 #define GLFW_MOUSE_BUTTON_LEFT GLFW_MOUSE_BUTTON_1
223 #define GLFW_MOUSE_BUTTON_RIGHT GLFW_MOUSE_BUTTON_2
224 #define GLFW_MOUSE_BUTTON_MIDDLE GLFW_MOUSE_BUTTON_3
225 
226 //
227 // GLFW End
228 //
229 
230 #endif /* GLUS_GLFW_ES_H_ */