Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::core::KeyboardKey Struct Reference

#include <OxygenEngine/core/event_type.h>

Static Public Attributes

static constexpr const int32_t KEY_UNKNOWN = -1
 Symbolic constant for an unknown key.
static constexpr const int32_t KEY_NONE = 0
 Not a real key, it will never be sent in events.
static constexpr const int32_t KEY_SPACE = 32
 Space bar.
static constexpr const int32_t KEY_APOSTROPHE = 39
 Apostrophe key '.
static constexpr const int32_t KEY_COMMA = 44
 Comma key ,.
static constexpr const int32_t KEY_MINUS = 45
 Minus key -.
static constexpr const int32_t KEY_PERIOD = 46
 Period key ..
static constexpr const int32_t KEY_SLASH = 47
 Slash key /.
static constexpr const int32_t KEY_0 = 48
 Numeric key 0 below function keys.
static constexpr const int32_t KEY_1 = 49
 Numeric key 1 below function keys.
static constexpr const int32_t KEY_2 = 50
 Numeric key 2 below function keys.
static constexpr const int32_t KEY_3 = 51
 Numeric key 3 below function keys.
static constexpr const int32_t KEY_4 = 52
 Numeric key 4 below function keys.
static constexpr const int32_t KEY_5 = 53
 Numeric key 5 below function keys.
static constexpr const int32_t KEY_6 = 54
 Numeric key 6 below function keys.
static constexpr const int32_t KEY_7 = 55
 Numeric key 7 below function keys.
static constexpr const int32_t KEY_8 = 56
 Numeric key 8 below function keys.
static constexpr const int32_t KEY_9 = 57
 Numeric key 9 below function keys.
static constexpr const int32_t KEY_SEMICOLON = 59
 Semicolon key ;.
static constexpr const int32_t KEY_EQUAL = 61
 Equal key =.
static constexpr const int32_t KEY_A = 65
static constexpr const int32_t KEY_B = 66
static constexpr const int32_t KEY_C = 67
static constexpr const int32_t KEY_D = 68
static constexpr const int32_t KEY_E = 69
static constexpr const int32_t KEY_F = 70
static constexpr const int32_t KEY_G = 71
static constexpr const int32_t KEY_H = 72
static constexpr const int32_t KEY_I = 73
static constexpr const int32_t KEY_J = 74
static constexpr const int32_t KEY_K = 75
static constexpr const int32_t KEY_L = 76
static constexpr const int32_t KEY_M = 77
static constexpr const int32_t KEY_N = 78
static constexpr const int32_t KEY_O = 79
static constexpr const int32_t KEY_P = 80
static constexpr const int32_t KEY_Q = 81
static constexpr const int32_t KEY_R = 82
static constexpr const int32_t KEY_S = 83
static constexpr const int32_t KEY_T = 84
static constexpr const int32_t KEY_U = 85
static constexpr const int32_t KEY_V = 86
static constexpr const int32_t KEY_W = 87
static constexpr const int32_t KEY_X = 88
static constexpr const int32_t KEY_Y = 89
static constexpr const int32_t KEY_Z = 90
static constexpr const int32_t KEY_LEFT_BRACKET = 91
static constexpr const int32_t KEY_BACKSLASH = 92
 Backslash key \.
static constexpr const int32_t KEY_RIGHT_BRACKET = 93
static constexpr const int32_t KEY_GRAVE_ACCENT = 96
static constexpr const int32_t KEY_WORLD_1 = 161
static constexpr const int32_t KEY_WORLD_2 = 162
static constexpr const int32_t KEY_ESCAPE = 256
static constexpr const int32_t KEY_ENTER = 257
static constexpr const int32_t KEY_TAB = 258
static constexpr const int32_t KEY_BACKSPACE = 259
static constexpr const int32_t KEY_INSERT = 260
static constexpr const int32_t KEY_DELETE = 261
static constexpr const int32_t KEY_RIGHT = 262
static constexpr const int32_t KEY_LEFT = 263
static constexpr const int32_t KEY_DOWN = 264
static constexpr const int32_t KEY_UP = 265
static constexpr const int32_t KEY_PAGE_UP = 266
static constexpr const int32_t KEY_PAGE_DOWN = 267
static constexpr const int32_t KEY_HOME = 268
static constexpr const int32_t KEY_END = 269
static constexpr const int32_t KEY_CAPS_LOCK = 280
static constexpr const int32_t KEY_SCROLL_LOCK = 281
static constexpr const int32_t KEY_NUM_LOCK = 282
static constexpr const int32_t KEY_PRINT_SCREEN = 283
static constexpr const int32_t KEY_PAUSE = 284
static constexpr const int32_t KEY_F1 = 290
static constexpr const int32_t KEY_F2 = 291
static constexpr const int32_t KEY_F3 = 292
static constexpr const int32_t KEY_F4 = 293
static constexpr const int32_t KEY_F5 = 294
static constexpr const int32_t KEY_F6 = 295
static constexpr const int32_t KEY_F7 = 296
static constexpr const int32_t KEY_F8 = 297
static constexpr const int32_t KEY_F9 = 298
static constexpr const int32_t KEY_F10 = 299
static constexpr const int32_t KEY_F11 = 300
static constexpr const int32_t KEY_F12 = 301
static constexpr const int32_t KEY_F13 = 302
static constexpr const int32_t KEY_F14 = 303
static constexpr const int32_t KEY_F15 = 304
static constexpr const int32_t KEY_F16 = 305
static constexpr const int32_t KEY_F17 = 306
static constexpr const int32_t KEY_F18 = 307
static constexpr const int32_t KEY_F19 = 308
static constexpr const int32_t KEY_F20 = 309
static constexpr const int32_t KEY_F21 = 310
static constexpr const int32_t KEY_F22 = 311
static constexpr const int32_t KEY_F23 = 312
static constexpr const int32_t KEY_F24 = 313
static constexpr const int32_t KEY_F25 = 314
static constexpr const int32_t KEY_KP_0 = 320
 Numeric key 0 on keypad.
static constexpr const int32_t KEY_KP_1 = 321
 Numeric key 1 on keypad.
static constexpr const int32_t KEY_KP_2 = 322
 Numeric key 2 on keypad.
static constexpr const int32_t KEY_KP_3 = 323
 Numeric key 3 on keypad.
static constexpr const int32_t KEY_KP_4 = 324
 Numeric key 4 on keypad.
static constexpr const int32_t KEY_KP_5 = 325
 Numeric key 5 on keypad.
static constexpr const int32_t KEY_KP_6 = 326
 Numeric key 6 on keypad.
static constexpr const int32_t KEY_KP_7 = 327
 Numeric key 7 on keypad.
static constexpr const int32_t KEY_KP_8 = 328
 Numeric key 8 on keypad.
static constexpr const int32_t KEY_KP_9 = 329
 Numeric key 9 on keypad.
static constexpr const int32_t KEY_KP_DECIMAL = 330
static constexpr const int32_t KEY_KP_DIVIDE = 331
static constexpr const int32_t KEY_KP_MULTIPLY = 332
static constexpr const int32_t KEY_KP_SUBTRACT = 333
static constexpr const int32_t KEY_KP_ADD = 334
static constexpr const int32_t KEY_KP_ENTER = 335
static constexpr const int32_t KEY_KP_EQUAL = 336
static constexpr const int32_t KEY_LEFT_SHIFT = 340
static constexpr const int32_t KEY_LEFT_CONTROL = 341
static constexpr const int32_t KEY_LEFT_ALT = 342
static constexpr const int32_t KEY_LEFT_SUPER = 343
 Left Super key, also known as the logo key.
static constexpr const int32_t KEY_RIGHT_SHIFT = 344
static constexpr const int32_t KEY_RIGHT_CONTROL = 345
static constexpr const int32_t KEY_RIGHT_ALT = 346
static constexpr const int32_t KEY_RIGHT_SUPER = 347
 Right Super key, also known as the logo key.
static constexpr const int32_t KEY_MENU = 348

Detailed Description

All keyboard keys

Note
Constants are same used by GLFW

Letter keys are assumed to be on a Qwerty keyboard e.g. If you are using an Azerty keyboard and you press the 'A' key, the event will contain 'KEY_Q'

Member Data Documentation

◆ KEY_NONE

const int32_t oe::core::KeyboardKey::KEY_NONE = 0
staticconstexpr

Not a real key, it will never be sent in events.

Can be used in user code to represent a binding not bound to any keys


The documentation for this struct was generated from the following file: