Source code of Windows XP (NT5)
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.

113 lines
3.7 KiB

  1. /*
  2. *
  3. *
  4. * Keycode definitions for special keys
  5. *
  6. * On systems that have any of these keys, the routine 'inchar' in the
  7. * machine-dependent code should return one of the codes here.
  8. */
  9. #define ZERO ((TCHAR) 0x00)
  10. #define ESCP ((TCHAR) 0x1B)
  11. #define K_HOME ((TCHAR) 0x80)
  12. #define K_END ((TCHAR) 0x81)
  13. #define K_INSERT ((TCHAR) 0x82)
  14. #define K_DELETE ((TCHAR) 0x83)
  15. #define K_UARROW ((TCHAR) 0x84)
  16. #define K_DARROW ((TCHAR) 0x85)
  17. #define K_LARROW ((TCHAR) 0x86)
  18. #define K_RARROW ((TCHAR) 0x87)
  19. #define K_CGRAVE ((TCHAR) 0x88) /* control grave accent */
  20. #define K_PAGEUP ((TCHAR) 0x89)
  21. #define K_PAGEDOWN ((TCHAR) 0x8A)
  22. #define K_F1 ((TCHAR) 0x8B) /* function keys */
  23. #define K_F2 ((TCHAR) 0x8C)
  24. #define K_F3 ((TCHAR) 0x8D)
  25. #define K_F4 ((TCHAR) 0x8E)
  26. #define K_F5 ((TCHAR) 0x8F)
  27. #define K_F6 ((TCHAR) 0x90)
  28. #define K_F7 ((TCHAR) 0x91)
  29. #define K_F8 ((TCHAR) 0x92)
  30. #define K_F9 ((TCHAR) 0x93)
  31. #define K_F10 ((TCHAR) 0x94)
  32. #define K_F11 ((TCHAR) 0x95)
  33. #define K_F12 ((TCHAR) 0x96)
  34. #define K_SF1 ((TCHAR) 0x97) /* shifted function keys */
  35. #define K_SF2 ((TCHAR) 0x98)
  36. #define K_SF3 ((TCHAR) 0x99)
  37. #define K_SF4 ((TCHAR) 0x9A)
  38. #define K_SF5 ((TCHAR) 0x9B)
  39. #define K_SF6 ((TCHAR) 0x9C)
  40. #define K_SF7 ((TCHAR) 0x9D)
  41. #define K_SF8 ((TCHAR) 0x9E)
  42. #define K_SF9 ((TCHAR) 0x9F)
  43. #define K_SF10 ((TCHAR) 0xA0)
  44. #define K_SF11 ((TCHAR) 0xA1)
  45. #define K_SF12 ((TCHAR) 0xA2)
  46. #define CTLA ((TCHAR) 0x01)
  47. #define CTLB ((TCHAR) 0x02)
  48. #define CTLC ((TCHAR) 0x03)
  49. #define CTLD ((TCHAR) 0x04)
  50. #define CTLE ((TCHAR) 0x05)
  51. #define CTLF ((TCHAR) 0x06)
  52. #define CTLG ((TCHAR) 0x07)
  53. #define CTLH ((TCHAR) 0x08)
  54. #define CTLI ((TCHAR) 0x09)
  55. #define CTLJ ((TCHAR) 0x0A)
  56. #define CTLK ((TCHAR) 0x0B)
  57. #define CTLL ((TCHAR) 0x0C)
  58. #define CTLM ((TCHAR) 0x0D)
  59. #define CTLN ((TCHAR) 0x0E)
  60. #define CTLO ((TCHAR) 0x0F)
  61. #define CTLP ((TCHAR) 0x10)
  62. #define CTLQ ((TCHAR) 0x11)
  63. #define CTLR ((TCHAR) 0x12)
  64. #define CTLS ((TCHAR) 0x13)
  65. #define CTLT ((TCHAR) 0x14)
  66. #define CTLU ((TCHAR) 0x15)
  67. #define CTLV ((TCHAR) 0x16)
  68. #define CTLW ((TCHAR) 0x17)
  69. #define CTLX ((TCHAR) 0x18)
  70. #define CTLY ((TCHAR) 0x19)
  71. #define CTLZ ((TCHAR) 0x1A)
  72. #define CTL1 ((TCHAR) 0x1B)
  73. #define CTL2 ((TCHAR) 0x1C)
  74. #define CTL3 ((TCHAR) 0x1D)
  75. #define CTL4 ((TCHAR) 0x1E)
  76. #define CTL5 ((TCHAR) 0x1F)
  77. /*
  78. for keyboard translation tables
  79. */
  80. #define K_EN K_END
  81. #define K_HO K_HOME
  82. #define K_LE K_LARROW
  83. #define K_RI K_RARROW
  84. #define K_UP K_UARROW
  85. #define K_DO K_DARROW
  86. #define K_IN K_INSERT
  87. #define K_DE K_DELETE
  88. #define K_CG K_CGRAVE
  89. #define K_PU K_PAGEUP
  90. #define K_PD K_PAGEDOWN
  91. #define K_FA K_F10
  92. #define K_FB K_F11
  93. #define K_FC K_F12
  94. #define K_S1 K_SF1
  95. #define K_S2 K_SF2
  96. #define K_S3 K_SF3
  97. #define K_S4 K_SF4
  98. #define K_S5 K_SF5
  99. #define K_S6 K_SF6
  100. #define K_S7 K_SF7
  101. #define K_S8 K_SF8
  102. #define K_S9 K_SF9
  103. #define K_SA K_SF10
  104. #define K_SB K_SF11
  105. #define K_SC K_SF12