Macros
Keyboard keys

Keyboard key IDs. More...

Collaboration diagram for Keyboard keys:

Macros

#define GLFW_KEY_0   48
 
#define GLFW_KEY_1   49
 
#define GLFW_KEY_2   50
 
#define GLFW_KEY_3   51
 
#define GLFW_KEY_4   52
 
#define GLFW_KEY_5   53
 
#define GLFW_KEY_6   54
 
#define GLFW_KEY_7   55
 
#define GLFW_KEY_8   56
 
#define GLFW_KEY_9   57
 
#define GLFW_KEY_A   65
 
#define GLFW_KEY_APOSTROPHE   39 /* ' */
 
#define GLFW_KEY_B   66
 
#define GLFW_KEY_BACKSLASH   92 /* \ */
 
#define GLFW_KEY_BACKSPACE   259
 
#define GLFW_KEY_C   67
 
#define GLFW_KEY_CAPS_LOCK   280
 
#define GLFW_KEY_COMMA   44 /* , */
 
#define GLFW_KEY_D   68
 
#define GLFW_KEY_DELETE   261
 
#define GLFW_KEY_DOWN   264
 
#define GLFW_KEY_E   69
 
#define GLFW_KEY_END   269
 
#define GLFW_KEY_ENTER   257
 
#define GLFW_KEY_EQUAL   61 /* = */
 
#define GLFW_KEY_ESCAPE   256
 
#define GLFW_KEY_F   70
 
#define GLFW_KEY_F1   290
 
#define GLFW_KEY_F10   299
 
#define GLFW_KEY_F11   300
 
#define GLFW_KEY_F12   301
 
#define GLFW_KEY_F13   302
 
#define GLFW_KEY_F14   303
 
#define GLFW_KEY_F15   304
 
#define GLFW_KEY_F16   305
 
#define GLFW_KEY_F17   306
 
#define GLFW_KEY_F18   307
 
#define GLFW_KEY_F19   308
 
#define GLFW_KEY_F2   291
 
#define GLFW_KEY_F20   309
 
#define GLFW_KEY_F21   310
 
#define GLFW_KEY_F22   311
 
#define GLFW_KEY_F23   312
 
#define GLFW_KEY_F24   313
 
#define GLFW_KEY_F25   314
 
#define GLFW_KEY_F3   292
 
#define GLFW_KEY_F4   293
 
#define GLFW_KEY_F5   294
 
#define GLFW_KEY_F6   295
 
#define GLFW_KEY_F7   296
 
#define GLFW_KEY_F8   297
 
#define GLFW_KEY_F9   298
 
#define GLFW_KEY_G   71
 
#define GLFW_KEY_GRAVE_ACCENT   96 /* ` */
 
#define GLFW_KEY_H   72
 
#define GLFW_KEY_HOME   268
 
#define GLFW_KEY_I   73
 
#define GLFW_KEY_INSERT   260
 
#define GLFW_KEY_J   74
 
#define GLFW_KEY_K   75
 
#define GLFW_KEY_KP_0   320
 
#define GLFW_KEY_KP_1   321
 
#define GLFW_KEY_KP_2   322
 
#define GLFW_KEY_KP_3   323
 
#define GLFW_KEY_KP_4   324
 
#define GLFW_KEY_KP_5   325
 
#define GLFW_KEY_KP_6   326
 
#define GLFW_KEY_KP_7   327
 
#define GLFW_KEY_KP_8   328
 
#define GLFW_KEY_KP_9   329
 
#define GLFW_KEY_KP_ADD   334
 
#define GLFW_KEY_KP_DECIMAL   330
 
#define GLFW_KEY_KP_DIVIDE   331
 
#define GLFW_KEY_KP_ENTER   335
 
#define GLFW_KEY_KP_EQUAL   336
 
#define GLFW_KEY_KP_MULTIPLY   332
 
#define GLFW_KEY_KP_SUBTRACT   333
 
#define GLFW_KEY_L   76
 
#define GLFW_KEY_LAST   GLFW_KEY_MENU
 
#define GLFW_KEY_LEFT   263
 
#define GLFW_KEY_LEFT_ALT   342
 
#define GLFW_KEY_LEFT_BRACKET   91 /* [ */
 
#define GLFW_KEY_LEFT_CONTROL   341
 
#define GLFW_KEY_LEFT_SHIFT   340
 
#define GLFW_KEY_LEFT_SUPER   343
 
#define GLFW_KEY_M   77
 
#define GLFW_KEY_MENU   348
 
#define GLFW_KEY_MINUS   45 /* - */
 
#define GLFW_KEY_N   78
 
#define GLFW_KEY_NUM_LOCK   282
 
#define GLFW_KEY_O   79
 
#define GLFW_KEY_P   80
 
#define GLFW_KEY_PAGE_DOWN   267
 
#define GLFW_KEY_PAGE_UP   266
 
#define GLFW_KEY_PAUSE   284
 
#define GLFW_KEY_PERIOD   46 /* . */
 
#define GLFW_KEY_PRINT_SCREEN   283
 
#define GLFW_KEY_Q   81
 
#define GLFW_KEY_R   82
 
#define GLFW_KEY_RIGHT   262
 
#define GLFW_KEY_RIGHT_ALT   346
 
#define GLFW_KEY_RIGHT_BRACKET   93 /* ] */
 
#define GLFW_KEY_RIGHT_CONTROL   345
 
#define GLFW_KEY_RIGHT_SHIFT   344
 
#define GLFW_KEY_RIGHT_SUPER   347
 
#define GLFW_KEY_S   83
 
#define GLFW_KEY_SCROLL_LOCK   281
 
#define GLFW_KEY_SEMICOLON   59 /* ; */
 
#define GLFW_KEY_SLASH   47 /* / */
 
#define GLFW_KEY_SPACE   32
 
#define GLFW_KEY_T   84
 
#define GLFW_KEY_TAB   258
 
#define GLFW_KEY_U   85
 
#define GLFW_KEY_UNKNOWN   -1
 
#define GLFW_KEY_UP   265
 
#define GLFW_KEY_V   86
 
#define GLFW_KEY_W   87
 
#define GLFW_KEY_WORLD_1   161 /* non-US #1 */
 
#define GLFW_KEY_WORLD_2   162 /* non-US #2 */
 
#define GLFW_KEY_X   88
 
#define GLFW_KEY_Y   89
 
#define GLFW_KEY_Z   90
 

Detailed Description

Keyboard key IDs.

See key input for how these are used.

These key codes are inspired by the USB HID Usage Tables v1.12 (p. 53-60), but re-arranged to map to 7-bit ASCII for printable keys (function keys are put in the 256+ range).

The naming of the key codes follow these rules:

Macro Definition Documentation

#define GLFW_KEY_0   48

Definition at line 366 of file glfw3.h.

#define GLFW_KEY_1   49

Definition at line 367 of file glfw3.h.

#define GLFW_KEY_2   50

Definition at line 368 of file glfw3.h.

#define GLFW_KEY_3   51

Definition at line 369 of file glfw3.h.

#define GLFW_KEY_4   52

Definition at line 370 of file glfw3.h.

#define GLFW_KEY_5   53

Definition at line 371 of file glfw3.h.

#define GLFW_KEY_6   54

Definition at line 372 of file glfw3.h.

#define GLFW_KEY_7   55

Definition at line 373 of file glfw3.h.

#define GLFW_KEY_8   56

Definition at line 374 of file glfw3.h.

#define GLFW_KEY_9   57

Definition at line 375 of file glfw3.h.

#define GLFW_KEY_A   65

Definition at line 378 of file glfw3.h.

#define GLFW_KEY_APOSTROPHE   39 /* ' */

Definition at line 361 of file glfw3.h.

#define GLFW_KEY_B   66

Definition at line 379 of file glfw3.h.

#define GLFW_KEY_BACKSLASH   92 /* \ */

Definition at line 405 of file glfw3.h.

#define GLFW_KEY_BACKSPACE   259

Definition at line 415 of file glfw3.h.

#define GLFW_KEY_C   67

Definition at line 380 of file glfw3.h.

#define GLFW_KEY_CAPS_LOCK   280

Definition at line 426 of file glfw3.h.

#define GLFW_KEY_COMMA   44 /* , */

Definition at line 362 of file glfw3.h.

#define GLFW_KEY_D   68

Definition at line 381 of file glfw3.h.

#define GLFW_KEY_DELETE   261

Definition at line 417 of file glfw3.h.

#define GLFW_KEY_DOWN   264

Definition at line 420 of file glfw3.h.

#define GLFW_KEY_E   69

Definition at line 382 of file glfw3.h.

#define GLFW_KEY_END   269

Definition at line 425 of file glfw3.h.

#define GLFW_KEY_ENTER   257

Definition at line 413 of file glfw3.h.

#define GLFW_KEY_EQUAL   61 /* = */

Definition at line 377 of file glfw3.h.

#define GLFW_KEY_ESCAPE   256

Definition at line 412 of file glfw3.h.

#define GLFW_KEY_F   70

Definition at line 383 of file glfw3.h.

#define GLFW_KEY_F1   290

Definition at line 431 of file glfw3.h.

#define GLFW_KEY_F10   299

Definition at line 440 of file glfw3.h.

#define GLFW_KEY_F11   300

Definition at line 441 of file glfw3.h.

#define GLFW_KEY_F12   301

Definition at line 442 of file glfw3.h.

#define GLFW_KEY_F13   302

Definition at line 443 of file glfw3.h.

#define GLFW_KEY_F14   303

Definition at line 444 of file glfw3.h.

#define GLFW_KEY_F15   304

Definition at line 445 of file glfw3.h.

#define GLFW_KEY_F16   305

Definition at line 446 of file glfw3.h.

#define GLFW_KEY_F17   306

Definition at line 447 of file glfw3.h.

#define GLFW_KEY_F18   307

Definition at line 448 of file glfw3.h.

#define GLFW_KEY_F19   308

Definition at line 449 of file glfw3.h.

#define GLFW_KEY_F2   291

Definition at line 432 of file glfw3.h.

#define GLFW_KEY_F20   309

Definition at line 450 of file glfw3.h.

#define GLFW_KEY_F21   310

Definition at line 451 of file glfw3.h.

#define GLFW_KEY_F22   311

Definition at line 452 of file glfw3.h.

#define GLFW_KEY_F23   312

Definition at line 453 of file glfw3.h.

#define GLFW_KEY_F24   313

Definition at line 454 of file glfw3.h.

#define GLFW_KEY_F25   314

Definition at line 455 of file glfw3.h.

#define GLFW_KEY_F3   292

Definition at line 433 of file glfw3.h.

#define GLFW_KEY_F4   293

Definition at line 434 of file glfw3.h.

#define GLFW_KEY_F5   294

Definition at line 435 of file glfw3.h.

#define GLFW_KEY_F6   295

Definition at line 436 of file glfw3.h.

#define GLFW_KEY_F7   296

Definition at line 437 of file glfw3.h.

#define GLFW_KEY_F8   297

Definition at line 438 of file glfw3.h.

#define GLFW_KEY_F9   298

Definition at line 439 of file glfw3.h.

#define GLFW_KEY_G   71

Definition at line 384 of file glfw3.h.

#define GLFW_KEY_GRAVE_ACCENT   96 /* ` */

Definition at line 407 of file glfw3.h.

#define GLFW_KEY_H   72

Definition at line 385 of file glfw3.h.

#define GLFW_KEY_HOME   268

Definition at line 424 of file glfw3.h.

#define GLFW_KEY_I   73

Definition at line 386 of file glfw3.h.

#define GLFW_KEY_INSERT   260

Definition at line 416 of file glfw3.h.

#define GLFW_KEY_J   74

Definition at line 387 of file glfw3.h.

#define GLFW_KEY_K   75

Definition at line 388 of file glfw3.h.

#define GLFW_KEY_KP_0   320

Definition at line 456 of file glfw3.h.

#define GLFW_KEY_KP_1   321

Definition at line 457 of file glfw3.h.

#define GLFW_KEY_KP_2   322

Definition at line 458 of file glfw3.h.

#define GLFW_KEY_KP_3   323

Definition at line 459 of file glfw3.h.

#define GLFW_KEY_KP_4   324

Definition at line 460 of file glfw3.h.

#define GLFW_KEY_KP_5   325

Definition at line 461 of file glfw3.h.

#define GLFW_KEY_KP_6   326

Definition at line 462 of file glfw3.h.

#define GLFW_KEY_KP_7   327

Definition at line 463 of file glfw3.h.

#define GLFW_KEY_KP_8   328

Definition at line 464 of file glfw3.h.

#define GLFW_KEY_KP_9   329

Definition at line 465 of file glfw3.h.

#define GLFW_KEY_KP_ADD   334

Definition at line 470 of file glfw3.h.

#define GLFW_KEY_KP_DECIMAL   330

Definition at line 466 of file glfw3.h.

#define GLFW_KEY_KP_DIVIDE   331

Definition at line 467 of file glfw3.h.

#define GLFW_KEY_KP_ENTER   335

Definition at line 471 of file glfw3.h.

#define GLFW_KEY_KP_EQUAL   336

Definition at line 472 of file glfw3.h.

#define GLFW_KEY_KP_MULTIPLY   332

Definition at line 468 of file glfw3.h.

#define GLFW_KEY_KP_SUBTRACT   333

Definition at line 469 of file glfw3.h.

#define GLFW_KEY_L   76

Definition at line 389 of file glfw3.h.

#define GLFW_KEY_LAST   GLFW_KEY_MENU

Definition at line 483 of file glfw3.h.

#define GLFW_KEY_LEFT   263

Definition at line 419 of file glfw3.h.

#define GLFW_KEY_LEFT_ALT   342

Definition at line 475 of file glfw3.h.

#define GLFW_KEY_LEFT_BRACKET   91 /* [ */

Definition at line 404 of file glfw3.h.

#define GLFW_KEY_LEFT_CONTROL   341

Definition at line 474 of file glfw3.h.

#define GLFW_KEY_LEFT_SHIFT   340

Definition at line 473 of file glfw3.h.

#define GLFW_KEY_LEFT_SUPER   343

Definition at line 476 of file glfw3.h.

#define GLFW_KEY_M   77

Definition at line 390 of file glfw3.h.

#define GLFW_KEY_MENU   348

Definition at line 481 of file glfw3.h.

#define GLFW_KEY_MINUS   45 /* - */

Definition at line 363 of file glfw3.h.

#define GLFW_KEY_N   78

Definition at line 391 of file glfw3.h.

#define GLFW_KEY_NUM_LOCK   282

Definition at line 428 of file glfw3.h.

#define GLFW_KEY_O   79

Definition at line 392 of file glfw3.h.

#define GLFW_KEY_P   80

Definition at line 393 of file glfw3.h.

#define GLFW_KEY_PAGE_DOWN   267

Definition at line 423 of file glfw3.h.

#define GLFW_KEY_PAGE_UP   266

Definition at line 422 of file glfw3.h.

#define GLFW_KEY_PAUSE   284

Definition at line 430 of file glfw3.h.

#define GLFW_KEY_PERIOD   46 /* . */

Definition at line 364 of file glfw3.h.

#define GLFW_KEY_PRINT_SCREEN   283

Definition at line 429 of file glfw3.h.

#define GLFW_KEY_Q   81

Definition at line 394 of file glfw3.h.

#define GLFW_KEY_R   82

Definition at line 395 of file glfw3.h.

#define GLFW_KEY_RIGHT   262

Definition at line 418 of file glfw3.h.

#define GLFW_KEY_RIGHT_ALT   346

Definition at line 479 of file glfw3.h.

#define GLFW_KEY_RIGHT_BRACKET   93 /* ] */

Definition at line 406 of file glfw3.h.

#define GLFW_KEY_RIGHT_CONTROL   345

Definition at line 478 of file glfw3.h.

#define GLFW_KEY_RIGHT_SHIFT   344

Definition at line 477 of file glfw3.h.

#define GLFW_KEY_RIGHT_SUPER   347

Definition at line 480 of file glfw3.h.

#define GLFW_KEY_S   83

Definition at line 396 of file glfw3.h.

#define GLFW_KEY_SCROLL_LOCK   281

Definition at line 427 of file glfw3.h.

#define GLFW_KEY_SEMICOLON   59 /* ; */

Definition at line 376 of file glfw3.h.

#define GLFW_KEY_SLASH   47 /* / */

Definition at line 365 of file glfw3.h.

#define GLFW_KEY_SPACE   32

Definition at line 360 of file glfw3.h.

#define GLFW_KEY_T   84

Definition at line 397 of file glfw3.h.

#define GLFW_KEY_TAB   258

Definition at line 414 of file glfw3.h.

#define GLFW_KEY_U   85

Definition at line 398 of file glfw3.h.

#define GLFW_KEY_UNKNOWN   -1

Definition at line 357 of file glfw3.h.

#define GLFW_KEY_UP   265

Definition at line 421 of file glfw3.h.

#define GLFW_KEY_V   86

Definition at line 399 of file glfw3.h.

#define GLFW_KEY_W   87

Definition at line 400 of file glfw3.h.

#define GLFW_KEY_WORLD_1   161 /* non-US #1 */

Definition at line 408 of file glfw3.h.

#define GLFW_KEY_WORLD_2   162 /* non-US #2 */

Definition at line 409 of file glfw3.h.

#define GLFW_KEY_X   88

Definition at line 401 of file glfw3.h.

#define GLFW_KEY_Y   89

Definition at line 402 of file glfw3.h.

#define GLFW_KEY_Z   90

Definition at line 403 of file glfw3.h.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31