home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / pcw_c.zip / KEYS.H < prev    next >
Text File  |  1991-12-15  |  2KB  |  93 lines

  1. /* $no list */ /*$no trace <<<keys.h>>> */
  2. /**********************************************************/
  3. /* File Id.                  Keys.H.                      */
  4. /* Author.                   Stan Milam.                  */
  5. /*                                                        */
  6. /*          (c) Copyright 1989-91 by Stan Milam           */
  7. /*                                                        */
  8. /* Comments: Used to define special keys.                 */
  9. /* Updated 12 Aug. 91 to work with new keyboard routines  */
  10. /* which greatly expand keyboard abilities.               */
  11. /*                                                        */
  12. /**********************************************************/
  13.  
  14. #define CR    0x000d
  15. #define ESC   0x001b
  16. #define ENTER 0x000a
  17.  
  18. /* Normal function keys */
  19.  
  20. #define F1   0x3b00
  21. #define F2   0x3c00
  22. #define F3   0x3d00
  23. #define F4   0x3e00
  24. #define F5   0x3f00
  25. #define F6   0x4000
  26. #define F7   0x4100
  27. #define F8   0x4200
  28. #define F9   0x4300
  29. #define F10  0x4400
  30.  
  31. /* Shifted function keys */
  32.  
  33. #define SHFTF1  0x5400
  34. #define SHFTF2  0x5500
  35. #define SHFTF3  0x5600
  36. #define SHFTF4  0x5700
  37. #define SHFTF5  0x5800
  38. #define SHFTF6  0x5900
  39. #define SHFTF7  0x5a00
  40. #define SHFTF8  0x5b00
  41. #define SHFTF9  0x5c00
  42. #define SHFTF10 0x5d00
  43.  
  44. /* Function keys combinded with Ctrl key */
  45.  
  46. #define CTRLF1  0x5e00
  47. #define CTRLF2  0x5f00
  48. #define CTRLF3  0x6000
  49. #define CTRLF4  0x6100
  50. #define CTRLF5  0x6200
  51. #define CTRLF6  0x6300
  52. #define CTRLF7  0x6400
  53. #define CTRLF8  0x6500
  54. #define CTRLF9  0x6600
  55. #define CTRLF10 0x6700
  56.  
  57. /* Function keys combined with Alt key */
  58.  
  59. #define ALTF1  0x6800
  60. #define ALTF2  0x6900
  61. #define ALTF3  0x6a00
  62. #define ALTF4  0x6b00
  63. #define ALTF5  0x6c00
  64. #define ALTF6  0x6d00
  65. #define ALTF7  0x6e00
  66. #define ALTF8  0x6f00
  67. #define ALTF9  0x7000
  68. #define ALTF10 0x7100
  69.  
  70. /* Other special keys */
  71.  
  72. #define BACKSPACE  0x0008
  73. #define TAB        0x0009
  74. #define SHFTTAB    0x0f00
  75. #define HOME       0x4700
  76. #define UPARROW    0x4800
  77. #define PGUP       0x4900
  78. #define LEFTARROW  0x4b00
  79. #define RITEARROW  0x4d00
  80. #define END        0x4f00
  81. #define DOWNARROW  0x5000
  82. #define PGDN       0x5100
  83. #define INS        0x5200
  84. #define DEL        0x5300
  85.  
  86. /* Some psuedo keys for the mouse */
  87.  
  88. #define RITE_MOUSE_KEY 0xff00
  89. #define LEFT_MOUSE_KEY 0Xfe00
  90. #define BOTH_MOUSE_KEY 0xfd00
  91.  
  92. /*$list */ /*$trace <<<keys.h>>> */
  93.