1#ifndef OE_CORE_EVENT_TYPE_H
2#define OE_CORE_EVENT_TYPE_H
66 static constexpr const int KEY_0 = 48;
67 static constexpr const int KEY_1 = 49;
68 static constexpr const int KEY_2 = 50;
69 static constexpr const int KEY_3 = 51;
70 static constexpr const int KEY_4 = 52;
71 static constexpr const int KEY_5 = 53;
72 static constexpr const int KEY_6 = 54;
73 static constexpr const int KEY_7 = 55;
74 static constexpr const int KEY_8 = 56;
75 static constexpr const int KEY_9 = 57;
78 static constexpr const int KEY_A = 65;
79 static constexpr const int KEY_B = 66;
80 static constexpr const int KEY_C = 67;
81 static constexpr const int KEY_D = 68;
82 static constexpr const int KEY_E = 69;
83 static constexpr const int KEY_F = 70;
84 static constexpr const int KEY_G = 71;
85 static constexpr const int KEY_H = 72;
86 static constexpr const int KEY_I = 73;
87 static constexpr const int KEY_J = 74;
88 static constexpr const int KEY_K = 75;
89 static constexpr const int KEY_L = 76;
90 static constexpr const int KEY_M = 77;
91 static constexpr const int KEY_N = 78;
92 static constexpr const int KEY_O = 79;
93 static constexpr const int KEY_P = 80;
94 static constexpr const int KEY_Q = 81;
95 static constexpr const int KEY_R = 82;
96 static constexpr const int KEY_S = 83;
97 static constexpr const int KEY_T = 84;
98 static constexpr const int KEY_U = 85;
99 static constexpr const int KEY_V = 86;
100 static constexpr const int KEY_W = 87;
101 static constexpr const int KEY_X = 88;
102 static constexpr const int KEY_Y = 89;
103 static constexpr const int KEY_Z = 90;
104 static constexpr const int KEY_LEFT_BRACKET = 91;
106 static constexpr const int KEY_RIGHT_BRACKET = 93;
107 static constexpr const int KEY_GRAVE_ACCENT = 96;
108 static constexpr const int KEY_WORLD_1 = 161;
109 static constexpr const int KEY_WORLD_2 = 162;
112 static constexpr const int KEY_ESCAPE = 256;
113 static constexpr const int KEY_ENTER = 257;
114 static constexpr const int KEY_TAB = 258;
115 static constexpr const int KEY_BACKSPACE = 259;
116 static constexpr const int KEY_INSERT = 260;
117 static constexpr const int KEY_DELETE = 261;
118 static constexpr const int KEY_RIGHT = 262;
119 static constexpr const int KEY_LEFT = 263;
120 static constexpr const int KEY_DOWN = 264;
121 static constexpr const int KEY_UP = 265;
122 static constexpr const int KEY_PAGE_UP = 266;
123 static constexpr const int KEY_PAGE_DOWN = 267;
124 static constexpr const int KEY_HOME = 268;
125 static constexpr const int KEY_END = 269;
126 static constexpr const int KEY_CAPS_LOCK = 280;
127 static constexpr const int KEY_SCROLL_LOCK = 281;
128 static constexpr const int KEY_NUM_LOCK = 282;
129 static constexpr const int KEY_PRINT_SCREEN = 283;
130 static constexpr const int KEY_PAUSE = 284;
131 static constexpr const int KEY_F1 = 290;
132 static constexpr const int KEY_F2 = 291;
133 static constexpr const int KEY_F3 = 292;
134 static constexpr const int KEY_F4 = 293;
135 static constexpr const int KEY_F5 = 294;
136 static constexpr const int KEY_F6 = 295;
137 static constexpr const int KEY_F7 = 296;
138 static constexpr const int KEY_F8 = 297;
139 static constexpr const int KEY_F9 = 298;
140 static constexpr const int KEY_F10 = 299;
141 static constexpr const int KEY_F11 = 300;
142 static constexpr const int KEY_F12 = 301;
143 static constexpr const int KEY_F13 = 302;
144 static constexpr const int KEY_F14 = 303;
145 static constexpr const int KEY_F15 = 304;
146 static constexpr const int KEY_F16 = 305;
147 static constexpr const int KEY_F17 = 306;
148 static constexpr const int KEY_F18 = 307;
149 static constexpr const int KEY_F19 = 308;
150 static constexpr const int KEY_F20 = 309;
151 static constexpr const int KEY_F21 = 310;
152 static constexpr const int KEY_F22 = 311;
153 static constexpr const int KEY_F23 = 312;
154 static constexpr const int KEY_F24 = 313;
155 static constexpr const int KEY_F25 = 314;
166 static constexpr const int KEY_KP_DECIMAL = 330;
167 static constexpr const int KEY_KP_DIVIDE = 331;
168 static constexpr const int KEY_KP_MULTIPLY = 332;
169 static constexpr const int KEY_KP_SUBTRACT = 333;
170 static constexpr const int KEY_KP_ADD = 334;
171 static constexpr const int KEY_KP_ENTER = 335;
172 static constexpr const int KEY_KP_EQUAL = 336;
173 static constexpr const int KEY_LEFT_SHIFT = 340;
174 static constexpr const int KEY_LEFT_CONTROL = 341;
175 static constexpr const int KEY_LEFT_ALT = 342;
177 static constexpr const int KEY_RIGHT_SHIFT = 344;
178 static constexpr const int KEY_RIGHT_CONTROL = 345;
179 static constexpr const int KEY_RIGHT_ALT = 346;
181 static constexpr const int KEY_MENU = 348;
191 static constexpr const int BUTTON_LEFT = 0;
192 static constexpr const int BUTTON_RIGHT = 1;
193 static constexpr const int BUTTON_MIDDLE = 2;
196 static constexpr const int BUTTON_4 = 3;
197 static constexpr const int BUTTON_5 = 4;
198 static constexpr const int BUTTON_6 = 5;
199 static constexpr const int BUTTON_7 = 6;
200 static constexpr const int BUTTON_8 = 7;
221 unsigned int character;
233 } mouse_enter_window;
260 using EventList = std::vector<std::pair<EventType, EventData>>;
Core functionality (windows, event handler, logger, ...)
Definition cursor.h:8
EventType
Definition event_type.h:9
@ FRAMEBUFFER_RESIZE
Main framebuffer resized resized.
@ MOUSE_ENTER_WINDOW
Mouse cursor entered application window.
@ MOUSE_BUTTON
Mouse button clicked.
@ ALL
Not an event type per se but can by used as a symbolic constant to represent All / Any events.
@ CUSTOM
Custom event which can be filled by user.
@ MOUSE_SCROLL
Mouse scroll event.
@ WINDOW_RESIZE
Application window resized.
@ CHAR_INPUT
Keyboard character input.
@ DEVICE_ERROR
Device generated an error.
@ KEY_INPUT
Keyboard key input.
Definition event_type.h:52
static constexpr const int KEY_UNKNOWN
Symbolic constant for an unknown key.
Definition event_type.h:53
static constexpr const int KEY_2
Numeric key 2 below function keys.
Definition event_type.h:68
static constexpr const int KEY_EQUAL
Equal key =
Definition event_type.h:77
static constexpr const int KEY_KP_6
Numeric key 6 on keypad.
Definition event_type.h:162
static constexpr const int KEY_KP_7
Numeric key 7 on keypad.
Definition event_type.h:163
static constexpr const int KEY_5
Numeric key 5 below function keys.
Definition event_type.h:71
static constexpr const int KEY_0
Numeric key 0 below function keys.
Definition event_type.h:66
static constexpr const int KEY_3
Numeric key 3 below function keys.
Definition event_type.h:69
static constexpr const int KEY_KP_2
Numeric key 2 on keypad.
Definition event_type.h:158
static constexpr const int KEY_KP_9
Numeric key 9 on keypad.
Definition event_type.h:165
static constexpr const int KEY_COMMA
Comma key ,
Definition event_type.h:61
static constexpr const int KEY_SEMICOLON
Semicolon key ;
Definition event_type.h:76
static constexpr const int KEY_MINUS
Minus key -
Definition event_type.h:62
static constexpr const int KEY_KP_3
Numeric key 3 on keypad.
Definition event_type.h:159
static constexpr const int KEY_KP_1
Numeric key 1 on keypad.
Definition event_type.h:157
static constexpr const int KEY_6
Numeric key 6 below function keys.
Definition event_type.h:72
static constexpr const int KEY_SPACE
Space bar.
Definition event_type.h:59
static constexpr const int KEY_9
Numeric key 9 below function keys.
Definition event_type.h:75
static constexpr const int KEY_KP_4
Numeric key 4 on keypad.
Definition event_type.h:160
static constexpr const int KEY_APOSTROPHE
Apostrophe key '
Definition event_type.h:60
static constexpr const int KEY_7
Numeric key 7 below function keys.
Definition event_type.h:73
static constexpr const int KEY_LEFT_SUPER
Left Super key, also known as the logo key.
Definition event_type.h:176
static constexpr const int KEY_8
Numeric key 8 below function keys.
Definition event_type.h:74
static constexpr const int KEY_BACKSLASH
Backslash key \
Definition event_type.h:105
static constexpr const int KEY_1
Numeric key 1 below function keys.
Definition event_type.h:67
static constexpr const int KEY_PERIOD
Period key .
Definition event_type.h:63
static constexpr const int KEY_KP_8
Numeric key 8 on keypad.
Definition event_type.h:164
static constexpr const int KEY_RIGHT_SUPER
Right Super key, also known as the logo key.
Definition event_type.h:180
static constexpr const int KEY_NONE
Not a real key, it will never be sent in events. Can be used in user code to represent a binding not ...
Definition event_type.h:55
static constexpr const int KEY_SLASH
Slash key /
Definition event_type.h:65
static constexpr const int KEY_4
Numeric key 4 below function keys.
Definition event_type.h:70
static constexpr const int KEY_KP_0
Numeric key 0 on keypad.
Definition event_type.h:156
static constexpr const int KEY_KP_5
Numeric key 5 on keypad.
Definition event_type.h:161
Definition event_type.h:204