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.

79 lines
2.2 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 K_HOME 0x80
  10. #define K_END 0x81
  11. #define K_INSERT 0x82
  12. #define K_DELETE 0x83
  13. #define K_UARROW 0x84
  14. #define K_DARROW 0x85
  15. #define K_LARROW 0x86
  16. #define K_RARROW 0x87
  17. #define K_CGRAVE 0x88 /* control grave accent */
  18. #define K_PAGEUP 0x89
  19. #define K_PAGEDOWN 0x8a
  20. #define K_F1 0x91 /* function keys */
  21. #define K_F2 0x92
  22. #define K_F3 0x93
  23. #define K_F4 0x94
  24. #define K_F5 0x95
  25. #define K_F6 0x96
  26. #define K_F7 0x97
  27. #define K_F8 0x98
  28. #define K_F9 0x99
  29. #define K_F10 0x9a
  30. #define K_F11 0x9b
  31. #define K_F12 0x9c
  32. #define K_SF1 0xa1 /* shifted function keys */
  33. #define K_SF2 0xa2
  34. #define K_SF3 0xa3
  35. #define K_SF4 0xa4
  36. #define K_SF5 0xa5
  37. #define K_SF6 0xa6
  38. #define K_SF7 0xa7
  39. #define K_SF8 0xa8
  40. #define K_SF9 0xa9
  41. #define K_SF10 0xaa
  42. #define K_SF11 0xab
  43. #define K_SF12 0xac
  44. /*
  45. for keyboard translation tables
  46. */
  47. #define K_EN K_END
  48. #define K_HO K_HOME
  49. #define K_LE K_LARROW
  50. #define K_RI K_RARROW
  51. #define K_UP K_UARROW
  52. #define K_DO K_DARROW
  53. #define K_IN K_INSERT
  54. #define K_DE K_DELETE
  55. #define K_CG K_CGRAVE
  56. #define K_PU K_PAGEUP
  57. #define K_PD K_PAGEDOWN
  58. #define K_FA K_F10
  59. #define K_FB K_F11
  60. #define K_FC K_F12
  61. #define K_S1 K_SF1
  62. #define K_S2 K_SF2
  63. #define K_S3 K_SF3
  64. #define K_S4 K_SF4
  65. #define K_S5 K_SF5
  66. #define K_S6 K_SF6
  67. #define K_S7 K_SF7
  68. #define K_S8 K_SF8
  69. #define K_S9 K_SF9
  70. #define K_SA K_SF10
  71. #define K_SB K_SF11
  72. #define K_SC K_SF12