home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / KBD.H < prev    next >
Text File  |  1994-05-26  |  14KB  |  196 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   kbd.h                                                                   */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*   definitions for the keyboard.                                           */
  7. /*                                                                           */
  8. /* History:                                                                  */
  9. /*                                                                           */
  10. /*   02/08/91 Creation of 32-bit SD86, from 16-bit version.                  */
  11. /*                                                                           */
  12. /*...Release 1.01 (04/03/92)                                                 */
  13. /*...                                                                        */
  14. /*... 05/08/92  701   Srinivas  Cua Interface.                               */
  15. /**Includes*******************************************************************/
  16.  
  17. #define UP         0x4800               /* up arrow                          */
  18. #define C_UP       0x8D00               /* Ctrl up arrow                     */
  19. #define DOWN       0x5000               /* down arrow                        */
  20. #define C_DOWN     0x9100               /* Ctrl down arrow                   */
  21.  
  22. #define LEFT       0x4B00               /* left arrow                        */
  23. #define C_LEFT     0x4B00               /* Ctrl left arrow                   */
  24. #define RIGHT      0x4D00               /* right arrow                       */
  25. #define C_RIGHT    0x4D00               /* Ctrl right arrow                  */
  26. #define BACKSPACE  0x0E08               /* backspace (rubout)                */
  27.  
  28. #define TAB        0x0F09               /* tab                               */
  29. #define S_TAB      0x0F00               /* Shift tab                         */
  30.  
  31. #define HOME       0x4700               /* home                              */
  32. #define C_HOME     0x7700               /* Ctrl home                         */
  33. #define END        0x4F00               /* end                               */
  34. #define C_END      0x7500               /* Ctrl end                          */
  35. #define PGUP       0x4900               /* page up                           */
  36. #define C_PGUP     0x8400               /* Ctrl page up                      */
  37. #define PGDN       0x5100               /* page down                         */
  38. #define C_PGDN     0x7600               /* Ctrl page down                    */
  39.  
  40. #define SPACEBAR   0x3920               /* spacebar                          */
  41. #define C_SPACEBAR 0xCC20               /* spacebar (Ctrl shft gnd by GetKey)*/
  42. #define A_SPACEBAR 0xAA20               /* spacebar (Alt shft gend by GetKey)*/
  43. #define S_SPACEBAR 0xBB20               /* spacebar (Shift + spacebar)    808*/
  44. #define ENTER      0x1C0D               /* enter                             */
  45. #define C_ENTER    0x1C0A               /* Ctrl enter                        */
  46. #define A_ENTER    0x1C00               /* Alt enter                         */
  47. #define S_ENTER    0x1C0D               /* Shift enter                    808*/
  48.  
  49. #define INS        0x5200               /* insert                            */
  50. #define C_INS      0x9200               /* Ctrl insert                       */
  51. #define S_INS      0x5201               /* shift insert                      */
  52. #define A_INS      0xA200               /* Alt   insert                   808*/
  53. #define DEL        0x5300               /* delete                            */
  54. #define C_DEL      0x9300               /* Ctrl delete                       */
  55. #define S_DEL      0x9301               /* shift delete                      */
  56. #define A_DEL      0xA300               /* Alt   delete                   808*/
  57. #define ESC        0x011B               /* escape                            */
  58.  
  59. #define PADPLUS    0x4E2B               /* numeric keypad plus               */
  60. #define PADMINUS   0x4A2D               /* numeric keypad minus              */
  61. #define PADENTER   0x000D               /* numeric keypad entry              */
  62.  
  63. #define F1         0x3B00               /* PF1                               */
  64. #define F2         0x3C00               /* PF2                               */
  65. #define F3         0x3D00               /* PF3                               */
  66. #define F4         0x3E00               /* PF4                               */
  67. #define F5         0x3F00               /* PF5                               */
  68. #define F6         0x4000               /* PF6                               */
  69. #define F7         0x4100               /* PF7                               */
  70. #define F8         0x4200               /* PF8                               */
  71. #define F9         0x4300               /* PF9                               */
  72. #define F10        0x4400               /* PF10                              */
  73. #define F11        0x8500               /* PF11                              */
  74. #define F12        0x8600               /* PF12                              */
  75.  
  76. #define C_F1       0x5E00               /* Ctrl PF1                          */
  77. #define C_F2       0x5F00               /* Ctrl PF2                          */
  78. #define C_F3       0x6000               /* Ctrl PF3                          */
  79. #define C_F4       0x6100               /* Ctrl PF4                          */
  80. #define C_F5       0x6200               /* Ctrl PF5                          */
  81. #define C_F6       0x6300               /* Ctrl PF6                          */
  82. #define C_F7       0x6400               /* Ctrl PF7                          */
  83. #define C_F8       0x6500               /* Ctrl PF8                          */
  84. #define C_F9       0x6600               /* Ctrl PF9                          */
  85. #define C_F10      0x6700               /* Ctrl PF10                         */
  86. #define C_F11      0x8900               /* Ctrl PF11                         */
  87. #define C_F12      0x8A00               /* Ctrl PF12                         */
  88.  
  89. #define A_F1       0x6800               /* Alt PF1                           */
  90. #define A_F2       0x6900               /* Alt PF2                           */
  91. #define A_F3       0x6A00               /* Alt PF3                           */
  92. #define A_F4       0x6B00               /* Alt PF4                           */
  93. #define A_F5       0x6C00               /* Alt PF5                           */
  94. #define A_F6       0x6D00               /* Alt PF6                           */
  95. #define A_F7       0x6E00               /* Alt PF7                           */
  96. #define A_F8       0x6F00               /* Alt PF8                           */
  97. #define A_F9       0x7000               /* Alt PF9                           */
  98. #define A_F10      0x7100               /* Alt PF10                          */
  99. #define A_F11      0x8B00               /* Alt PF11                          */
  100. #define A_F12      0x8C00               /* Alt PF12                          */
  101.  
  102. #define A_F        0x2100               /* Alt F                             */
  103. #define A_R        0x1300               /* Alt R                             */
  104. #define A_B        0x3000               /* Alt B                             */
  105. #define A_E        0x1200               /* Alt E                             */
  106. #define A_S        0x1F00               /* Alt S                             */
  107. #define A_D        0x2000               /* Alt D                             */
  108. #define A_W        0x1100               /* Alt W                             */
  109. #define A_V        0x2F00               /* Alt V                             */
  110. #define A_O        0x1800               /* Alt O                             */
  111. #define A_M        0x3200               /* Alt M                             */
  112. #define A_H        0x2300               /* Alt H                             */
  113.  
  114. #define S_F1       0x5400               /* Shift PF1                         */
  115. #define S_F2       0x5500               /* Shift PF2                         */
  116. #define S_F3       0x5600               /* Shift PF3                         */
  117. #define S_F4       0x5700               /* Shift PF4                         */
  118. #define S_F5       0x5800               /* Shift PF5                         */
  119. #define S_F6       0x5900               /* Shift PF6                         */
  120. #define S_F7       0x5A00               /* Shift PF7                         */
  121. #define S_F8       0x5B00               /* Shift PF8                         */
  122. #define S_F9       0x5C00               /* Shift PF9                         */
  123. #define S_F10      0x5D00               /* Shift PF10                        */
  124. #define S_F11      0x8700               /* Shift PF11                        */
  125. #define S_F12      0x8800               /* Shift PF12                        */
  126.  
  127. #define SLASH      0x352f               /* Slash (/)                         */
  128. #define key_R      0x1352               /* R                                 */
  129. #define key_F      0x2146               /* F                                 */
  130. #define key_f      0x2166               /* f                                 */
  131. #define key_r      0x1372               /* r                                 */
  132. #define key_D      0x2044               /* D                                 */
  133. #define key_d      0x2064               /* d                                 */
  134. #define key_S      0x1F53               /* S                                 */
  135. #define key_s      0x1F73               /* s                                 */
  136. #define key_T      0x1454               /* T                                 */
  137. #define key_t      0x1474               /* t                                 */
  138. #define key_H      0x2348               /* H                                 */
  139. #define key_h      0x2368               /* h                                 */
  140. #define key_A      0x1E41               /* A                                 */
  141. #define key_a      0x1E61               /* a                                 */
  142. #define key_N      0x314E               /* N                                 */
  143. #define key_n      0x316E               /* n                                 */
  144. #define key_y      0x1579               /* y                                 */
  145. #define key_Y      0x1559               /* Y                                 */
  146. #define key_0      0x0b30               /* 0                                 */
  147. #define key_1      0x0231               /* 1                                 */
  148. #define key_2      0x0332               /* 2                                 */
  149. #define key_3      0x0433               /* 3                                 */
  150. #define key_4      0x0534               /* 4                                 */
  151. #define key_5      0x0635               /* 5                                 */
  152. #define key_6      0x0736               /* 6                                 */
  153. #define key_7      0x0837               /* 7                                 */
  154. #define key_8      0x0938               /* 8                                 */
  155. #define key_9      0x0a39               /* 9                                 */
  156.  
  157. #define MOUSECLICK 0xFFFF               /* indicates a mouse click out side  */
  158.                                         /* the current context.           701*/
  159. #define MOUSEPICK  0xFFFE               /* indicates a mouse click on a sel  */
  160.                                         /* ectable item in the window.    701*/
  161. #define SCROLLBAR  0xFFFD               /* indicates a mouse click on scroll */
  162.                                         /* bar.                           701*/
  163. #define SCROLLUP   0xFFFC               /* indicates a mouse click on scroll */
  164.                                         /* bar up arrow.                  701*/
  165. #define SCROLLDOWN 0xFFFB               /* indicates a mouse click on scroll */
  166.                                         /* bar down arrow.                701*/
  167. #define BGNEXT     0xFFFA               /* indicates a mouse click on back   */
  168.                                         /* ground next color button       701*/
  169. #define FGNEXT     0xFFF9               /* indicates a mouse click on fore   */
  170.                                         /* ground next color button       701*/
  171. #define TYNEXT     0xFFF8               /* indicates a mouse click on Type   */
  172.                                         /* nxt button in watchpoints win  701*/
  173. #define SPNEXT     0xFFF7               /* indicates a mouse click on Scope  */
  174.                                         /* nxt button in watchpoints win  701*/
  175. #define SZNEXT     0xFFF6               /* indicates a mouse click on Size   */
  176.                                         /* nxt button in watchpoints win  701*/
  177. #define STNEXT     0xFFF4               /* indicates a mouse click on Status */
  178.                                         /* nxt button in watchpoints win  701*/
  179.  
  180. #define DATAKEY    0x00FF               /* AUTOEXIT data key (ret by keystr) */
  181. #define HEXKEYFLD  3                    /* hex field type for keystr         */
  182. #define BINKEYFLD  9                    /* bin field type for keystr         */
  183.  
  184. /*****************************************************************************/
  185. /*                         CURSOR CONTROL                                    */
  186. /*****************************************************************************/
  187. typedef struct _csr{
  188.   UCHAR col;
  189.   UCHAR row;
  190.   UINT  mode;
  191. } CSR;
  192.  
  193. #define CSR_NORMAL 0
  194. #define CSR_INSERT 1
  195. #define CSR_HIDDEN 2
  196.