Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
4.0 KiB

  1. #ifndef __SCANCODEDEFINES_H__
  2. #define __SCANCODEDEFINES_H__
  3. // Alphabet
  4. #define SCANCODE_A 0x001E
  5. #define SCANCODE_B 0x0030
  6. #define SCANCODE_C 0x002E
  7. #define SCANCODE_D 0x0020
  8. #define SCANCODE_E 0x0012
  9. #define SCANCODE_F 0x0021
  10. #define SCANCODE_G 0x0022
  11. #define SCANCODE_H 0x0023
  12. #define SCANCODE_I 0x0017
  13. #define SCANCODE_J 0x0024
  14. #define SCANCODE_K 0x0025
  15. #define SCANCODE_L 0x0026
  16. #define SCANCODE_M 0x0032
  17. #define SCANCODE_N 0x0031
  18. #define SCANCODE_O 0x0018
  19. #define SCANCODE_P 0x0019
  20. #define SCANCODE_Q 0x0010
  21. #define SCANCODE_R 0x0013
  22. #define SCANCODE_S 0x001F
  23. #define SCANCODE_T 0x0014
  24. #define SCANCODE_U 0x0016
  25. #define SCANCODE_V 0x002F
  26. #define SCANCODE_W 0x0011
  27. #define SCANCODE_X 0x002D
  28. #define SCANCODE_Y 0x0015
  29. #define SCANCODE_Z 0x002C
  30. // Numbers (non numberpad)
  31. #define SCANCODE_0 0x000B
  32. #define SCANCODE_1 0x0002
  33. #define SCANCODE_2 0x0003
  34. #define SCANCODE_3 0x0004
  35. #define SCANCODE_4 0x0005
  36. #define SCANCODE_5 0x0006
  37. #define SCANCODE_6 0x0007
  38. #define SCANCODE_7 0x0008
  39. #define SCANCODE_8 0x0009
  40. #define SCANCODE_9 0x000A
  41. // Numbers (numberpad)
  42. #define SCANCODE_NUMPAD_0 0x0052
  43. #define SCANCODE_NUMPAD_1 0x004F
  44. #define SCANCODE_NUMPAD_2 0x0050
  45. #define SCANCODE_NUMPAD_3 0x0051
  46. #define SCANCODE_NUMPAD_4 0x004B
  47. #define SCANCODE_NUMPAD_5 0x004C
  48. #define SCANCODE_NUMPAD_6 0x004D
  49. #define SCANCODE_NUMPAD_7 0x0047
  50. #define SCANCODE_NUMPAD_8 0x0048
  51. #define SCANCODE_NUMPAD_9 0x0049
  52. // Numpad non-numbers
  53. #define SCANCODE_NUMPAD_NUMLOCK 0xE045
  54. #define SCANCODE_NUMPAD_DIVIDE 0xE035
  55. #define SCANCODE_NUMPAD_MULTIPLY 0x0037
  56. #define SCANCODE_NUMPAD_SUBTRACT 0x004A
  57. #define SCANCODE_NUMPAD_ADD 0x004E
  58. #define SCANCODE_NUMPAD_ENTER 0xE01C
  59. #define SCANCODE_NUMPAD_DELETE 0x0053
  60. // Function keys
  61. #define SCANCODE_F1 0x003B
  62. #define SCANCODE_F2 0x003C
  63. #define SCANCODE_F3 0x003D
  64. #define SCANCODE_F4 0x003E
  65. #define SCANCODE_F5 0x003F
  66. #define SCANCODE_F6 0x0040
  67. #define SCANCODE_F7 0x0041
  68. #define SCANCODE_F8 0x0042
  69. #define SCANCODE_F9 0x0043
  70. #define SCANCODE_F10 0x0044
  71. #define SCANCODE_F11 0x0057
  72. #define SCANCODE_F12 0x0058
  73. // Direction Arrows
  74. #define SCANCODE_NORTH 0xE048
  75. #define SCANCODE_EAST 0xE04D
  76. #define SCANCODE_SOUTH 0xE050
  77. #define SCANCODE_WEST 0xE04B
  78. // Magic 3
  79. #define SCANCODE_PRINT_SCREEN 0xE037
  80. #define SCANCODE_SCROLL_LOCK 0x0046
  81. #define SCANCODE_PAUSE_BREAK 0x0045 //What should this be?
  82. // Magic 6
  83. #define SCANCODE_INSERT 0xE052
  84. #define SCANCODE_HOME 0xE047
  85. #define SCANCODE_PAGE_UP 0xE049
  86. #define SCANCODE_DELETE 0xE053
  87. #define SCANCODE_END 0xE04F
  88. #define SCANCODE_PAGEDOWN 0xE051
  89. // Modifiers
  90. #define SCANCODE_CTRL_LEFT 0x001D
  91. #define SCANCODE_CTRL_RIGHT 0xE01D
  92. #define SCANCODE_SHIFT_LEFT 0x002A
  93. #define SCANCODE_SHIFT_RIGHT 0x0036
  94. #define SCANCODE_ALT_LEFT 0x0038
  95. #define SCANCODE_ALT_RIGHT 0xE038
  96. // Symbols
  97. #define SCANCODE_PERIOD 0x0034
  98. #define SCANCODE_COMMA 0x0033
  99. #define SCANCODE_LEFT_BRACKET 0x001A
  100. #define SCANCODE_RIGHT_BRACKET 0x001B
  101. #define SCANCODE_EQUALS 0x000D
  102. #define SCANCODE_MINUS 0x000C
  103. #define SCANCODE_SEMICOLON 0x0027
  104. #define SCANCODE_APOSTROPHE 0x0028
  105. #define SCANCODE_TILDE 0x0029
  106. #define SCANCODE_BACKSLASH 0x002B
  107. #define SCANCODE_QUESTIONMARK 0x0035
  108. // Miscellania
  109. #define SCANCODE_SPACE 0x0039
  110. #define SCANCODE_RETURN 0x001C
  111. #define SCANCODE_TAB 0x000F
  112. #define SCANCODE_BACKSPACE 0x000E
  113. #define SCANCODE_CAPSLOCK 0x003A
  114. #define SCANCODE_ESCAPE 0x0001
  115. #define SCANCODE_APPLICATION 0xE05D
  116. #define SCANCODE_LEFT_WIN 0xE05B
  117. #define SCANCODE_RIGHT_WIN 0xE05C
  118. #define SCANCODE_NON_US_BACKSLASH 0x0056
  119. // None english
  120. #define SCANCODE_INTERNATIONAL1 0x0073 //Brazilian forward slash, and Japanese backslash
  121. #define SCANCODE_INTERNATIONAL3 0x007D //Japanese Yen
  122. #define SCANCODE_INTERNATIONAL4 0x0079 //Japanese Henkan
  123. #define SCANCODE_INTERNATIONAL5 0x007B //Japanese Mu-Henkan
  124. #define SCANCODE_BRAZILIAN_PERIOD 0x007E //Brazilian Numpad Period
  125. #define SCANCODE_UNUSED 0x00FF //Unused key
  126. #endif __SCANCODEDEFINES_H__