home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / pcpilot.zip / KBD.H < prev    next >
Text File  |  1989-05-14  |  3KB  |  130 lines

  1. /* ------------------------------- KBD.H ---------------------------------- */
  2. #define RIGHTSHIFT        0x0001
  3. #define LEFTSHIFT        0x0002
  4. #define CONTROL            0x0004
  5. #define ALT                0x0008
  6. #define SCROLLSTATE        0x0010
  7. #define NUMLOCKSTATE    0x0020
  8. #define CAPLOCKSTATE    0x0040
  9. #define INSERTSTATE        0x0080
  10. #define CTRLNUMLKSTATE     0x0800
  11. #define SCROLLLOCK        0x1000
  12. #define NUMLOCK            0x2000
  13. #define CAPSLOCK        0x4000
  14. #define INSERT            0x8000
  15.  
  16. #define UP        0x4800
  17. #define DN        0x5000
  18. #define RIGHT    0x4d00
  19. #define LEFT    0x4b00
  20. #define PGUP    0x4900
  21. #define PGDN    0x5100
  22. #define HOME    0x4700
  23. #define END        0x4f00
  24. #define ESC        0x011b
  25. #define RET        0x1c0d
  26. #define BKSP    0x0e08
  27. #define SPACE    0x3920
  28.  
  29. #define F1        0x3b00
  30. #define F2        0x3c00
  31. #define F3        0x3d00
  32. #define F4        0x3e00
  33. #define F5        0x3f00
  34. #define F6        0x4000
  35. #define F7        0x4100
  36. #define F8        0x4200
  37. #define F9        0x4300
  38. #define F10        0x4400
  39.  
  40. /* ------------- Alt-Keys ---------------- */
  41. #define ALT_A    0x1e00
  42. #define ALT_B    0x3000
  43. #define ALT_C    0x2e00
  44. #define ALT_D    0x2000
  45. #define ALT_E    0x1200
  46. #define ALT_F    0x2100
  47. #define ALT_G    0x2200
  48. #define ALT_H    0x2300
  49. #define ALT_I    0x1700
  50. #define ALT_J    0x2400
  51. #define ALT_K    0x2500
  52. #define ALT_L    0x2600
  53. #define ALT_M    0x3200
  54. #define ALT_N    0x3100
  55. #define ALT_O    0x1800
  56. #define ALT_P    0x1900
  57. #define ALT_Q    0x1000
  58. #define ALT_R    0x1300
  59. #define ALT_S    0x1f00
  60. #define ALT_T    0x1400
  61. #define ALT_U    0x1600
  62. #define ALT_V    0x2f00
  63. #define ALT_W    0x1100
  64. #define ALT_X    0x2d00
  65. #define ALT_Y    0x1500
  66. #define ALT_Z    0x2c00
  67.  
  68. /* -------------- Ctrl-Keys ------------------ */
  69. #define CTRL_A    0x1e01
  70. #define CTRL_B    0x3002
  71. #define CTRL_C    0x2e03
  72. #define CTRL_D    0x2004
  73. #define CTRL_E    0x1205
  74. #define CTRL_F    0x2106
  75. #define CTRL_G    0x2207
  76. #define CTRL_H    0x2308
  77. #define CTRL_I    0x1709
  78. #define CTRL_J    0x240a
  79. #define CTRL_K    0x250b
  80. #define CTRL_L    0x260c
  81. #define CTRL_M    0x320d
  82. #define CTRL_N    0x310e
  83. #define CTRL_O    0x180f
  84. #define CTRL_P    0x1910
  85. #define CTRL_Q    0x1011
  86. #define CTRL_R    0x1312
  87. #define CTRL_S    0x1f13
  88. #define CTRL_T    0x1414
  89. #define CTRL_U    0x1615
  90. #define CTRL_V    0x2f16
  91. #define CTRL_W    0x1117
  92. #define CTRL_X    0x2d18
  93. #define CTRL_Y    0x1519
  94. #define CTRL_Z    0x2c1a
  95.  
  96. /* ----------- Alt-Function keys ------------- */
  97. #define ALT_F1    0x6800
  98. #define ALT_F2    0x6900
  99. #define ALT_F3    0x6a00
  100. #define ALT_F4    0x6b00
  101. #define ALT_F5    0x6c00
  102. #define ALT_F6    0x6d00
  103. #define ALT_F7    0x6e00
  104. #define ALT_F8    0x6f00
  105. #define ALT_F9    0x7000
  106. #define ALT_F10    0x7100
  107.  
  108. /* ----------- Ctrl-Function keys ------------- */
  109. #define CTRL_F1     0x5e00
  110. #define CTRL_F2        0x5f00
  111. #define CTRL_F3        0x6000
  112. #define CTRL_F4        0x6100
  113. #define CTRL_F5        0x6200
  114. #define CTRL_F6        0x6300
  115. #define CTRL_F7        0x6400
  116. #define CTRL_F8        0x6500
  117. #define CTRL_F9        0x6600
  118. #define CTRL_F10    0x6700
  119.  
  120. /* -------------- Shifted misc. keys ---------- */
  121. #define SHIFT_UP    0x4838
  122. #define SHIFT_DN    0x5032
  123. #define SHIFT_LEFT    0x4b34
  124. #define SHIFT_RIGHT    0x4d36
  125.  
  126. void KbdFlush     (void);
  127. int KbdGetShift  (void);
  128. void KbdSetShift (int ShiftStat);
  129. int KbdGetC         (void);
  130.