KEYS.H 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // SCAN CODES
  2. #define SC_NONE 0x0000
  3. #define SC_BAD 0x00ff
  4. #define SC_ESC 0x0001
  5. #define SC_F1 0x003b
  6. #define SC_F2 0x003c
  7. #define SC_F3 0x003d
  8. #define SC_F4 0x003e
  9. #define SC_F5 0x003f
  10. #define SC_F6 0x0040
  11. #define SC_F7 0x0041
  12. #define SC_F8 0x0042
  13. #define SC_F9 0x0043
  14. #define SC_F10 0x0044
  15. #define SC_F11 0x0057
  16. #define SC_F12 0x0058
  17. #define SC_TAB 0x000f
  18. #define SC_SLASH 0x002b
  19. #define SC_CAPS_LOCK 0x003a
  20. #define SC_LEFT_SHIFT 0x002a
  21. #define SC_CTRL 0x001d
  22. #define SC_ALT 0x0038
  23. #define SC_SCROLL_LOCK 0x0046
  24. #define SC_BACKSPACE 0x000e
  25. #define SC_ENTER 0x001c
  26. #define SC_RIGHT_SHIFT 0x0036
  27. #define SC_RIGHT_ALT 0xe038
  28. #define SC_RIGHT_CTRL 0xe010
  29. #define SC_EXT_INSERT 0xe052
  30. #define SC_EXT_DELETE 0xe053
  31. #define SC_EXT_HOME 0xe047
  32. #define SC_EXT_END 0xe04f
  33. #define SC_EXT_PAGEUP 0xe049
  34. #define SC_EXT_PAGEDN 0xe051
  35. #define SC_EXT_UP 0xe048
  36. #define SC_EXT_DN 0xe050
  37. #define SC_EXT_LEFT 0xe04b
  38. #define SC_EXT_RIGHT 0xe04d
  39. #define SC_EXT_ENTER 0xe01c
  40. #define SC_NUMLOCK 0x0045
  41. #define SC_INSERT 0x0052
  42. #define SC_DELETE 0x0053
  43. #define SC_HOME 0x0047
  44. #define SC_END 0x004f
  45. #define SC_PAGEUP 0x0049
  46. #define SC_PAGEDN 0x0051
  47. #define SC_UP 0x0048
  48. #define SC_DOWN 0x0050
  49. #define SC_LEFT 0x004b
  50. #define SC_RIGHT 0x004d
  51. #define SC_1 0x0002
  52. #define SC_2 0x0003
  53. #define SC_3 0x0004
  54. #define SC_4 0x0005
  55. #define SC_5 0x0006
  56. #define SC_6 0x0007
  57. #define SC_7 0x0008
  58. #define SC_8 0x0009
  59. #define SC_9 0x000a
  60. #define SC_0 0x000b
  61. #define SC_Q 0x0010
  62. #define SC_W 0x0011
  63. #define SC_E 0x0012
  64. #define SC_R 0x0013
  65. #define SC_T 0x0014
  66. #define SC_Y 0x0015
  67. #define SC_U 0x0016
  68. #define SC_I 0x0017
  69. #define SC_O 0x0018
  70. #define SC_P 0x0019
  71. #define SC_A 0x001e
  72. #define SC_S 0x001f
  73. #define SC_D 0x0020
  74. #define SC_F 0x0021
  75. #define SC_G 0x0022
  76. #define SC_H 0x0023
  77. #define SC_J 0x0024
  78. #define SC_K 0x0025
  79. #define SC_L 0x0026
  80. #define SC_Z 0x002c
  81. #define SC_X 0x002d
  82. #define SC_C 0x002e
  83. #define SC_V 0x002f
  84. #define SC_B 0x0030
  85. #define SC_N 0x0031
  86. #define SC_M 0x0032
  87. #define SC_SPACE 0x0039
  88. #define SC_RELEASE 0x0080
  89. #define SC_COMMA 0x0033
  90. #define SC_PERIOD 0x0034
  91. // ASCII KEYCODES
  92. #define KEY_ESC 0x1b
  93. #define KEY_F1 0x3b
  94. #define KEY_F2 0x3c
  95. #define KEY_F10 0x44
  96. #define KEY_ENTER 0x0d
  97.