home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / c / actlib11 / key.h < prev    next >
C/C++ Source or Header  |  1993-01-14  |  3KB  |  141 lines

  1. /*
  2.  *  Copyright (C) 1993   Marc Stern  (internet: stern@mble.philips.be)
  3.  *
  4.  * File         : key.h
  5.  *
  6.  * Description  : key code definitions.
  7.  *
  8.  */
  9.  
  10.  
  11. #ifndef __Key_H
  12. #define __Key_H
  13.  
  14.  
  15. #define RETURN            0x0d
  16. #define ENTER                   RETURN
  17. #define SPACE            0x20
  18. #define ESC            0x1b
  19. #define BKSP            0x08
  20. #define BACKSPACE        0x08
  21. #define CTRL_C                  0x03
  22.  
  23. #define UP                  328
  24. #define DOWN                    336
  25. #define LEFT                    331
  26. #define RIGHT                   333
  27. #define PGUP                329
  28. #define PGDN                    337
  29. #define HOME                    327
  30. #define END                         335
  31. #define INSERT                        338
  32. #define INS                     INSERT                
  33. #define DELETE                        339
  34. #define DEL                     DELETE                
  35. #define F1                      315
  36. #define F2                      316
  37. #define F3                      317
  38. #define F4                      318
  39. #define F5                      319
  40. #define F6                      320
  41. #define F7                      321
  42. #define F8                      322
  43. #define F9                      323
  44. #define F10                     324
  45.  
  46. /*
  47. #define INS            0x5200
  48. #define DEL            0x5300
  49. #define UP             0x4800
  50. #define DOWN            0x5000
  51. #define LEFT            0x4b00
  52. #define RIGHT            0x4d00
  53. #define HOME            0x4700
  54. #define END            0x4f00
  55. #define PGUP              0x4900
  56. #define PGDN            0x5100
  57. #define F1            0x3b00
  58. #define F2            0x3c00
  59. #define F3            0x3d00
  60. #define F4            0x3e00
  61. #define F5            0x3f00
  62. #define F6            0x4000
  63. #define F7            0x4100
  64. #define F8              0x4200
  65. #define F9            0x4300
  66. #define F10            0x4400
  67. #define F11            0x8500
  68. #define F12            0x8600
  69.  
  70. #define ALT_INS            0x5200
  71. #define ALT_DEL            0x5300
  72. #define ALT_UP             0x4800
  73. #define ALT_DOWN        0x5000
  74. #define ALT_LEFT        0x4b00
  75. #define ALT_RIGHT        0x4d00
  76. #define ALT_HOME        0x4700
  77. #define ALT_END              0x4f00
  78. #define ALT_PGUP        0x4900
  79. #define ALT_PGDN        0x5100
  80. #define ALT_F1            0x6800
  81. #define ALT_F2            0x6900
  82. #define ALT_F3            0x6a00
  83. #define ALT_F4            0x6b00
  84. #define ALT_F5            0x6c00
  85. #define ALT_F6            0x6d00
  86. #define ALT_F7            0x6e00
  87. #define ALT_F8            0x6f00
  88. #define ALT_F9            0x7000
  89. #define ALT_F10           0x7100
  90. #define ALT_F11           0x7100
  91. #define ALT_F12           0x7100
  92.  
  93. #define CTRL_INS        0x5200
  94. #define CTRL_DEL        0x5300
  95. #define CTRL_UP         0x4800
  96. #define CTRL_DOWN        0x5000
  97. #define CTRL_LEFT         0x4b00
  98. #define CTRL_RIGHT        0x4d00
  99. #define CTRL_HOME        0x4700
  100. #define CTRL_END        0x4f00
  101. #define CTRL_PGUP        0x4900
  102. #define CTRL_PGDN        0x5100
  103. #define CTRL_F1            0x5e00
  104. #define CTRL_F2            0x5f00
  105. #define CTRL_F3            0x6000
  106. #define CTRL_F4            0x6100
  107. #define CTRL_F5            0x6200
  108. #define CTRL_F6            0x6300
  109. #define CTRL_F7            0x6400
  110. #define CTRL_F8            0x6500
  111. #define CTRL_F9            0x6600
  112. #define CTRL_F10           0x6700
  113. #define CTRL_F11           0x8900
  114. #define CTRL_F12           0x8a00
  115.  
  116. #define SHIFT_INS        0x5200
  117. #define SHIFT_DEL         0x5300
  118. #define SHIFT_UP         0x4800
  119. #define SHIFT_DOWN        0x5000
  120. #define SHIFT_LEFT        0x4b00
  121. #define SHIFT_RIGHT        0x4d00
  122. #define SHIFT_HOME        0x4700
  123. #define SHIFT_END        0x4f00
  124. #define SHIFT_PGUP        0x4900
  125. #define SHIFT_PGDN        0x5100
  126. #define SHIFT_F1        0x5400
  127. #define SHIFT_F2        0x5500
  128. #define SHIFT_F3        0x5600
  129. #define SHIFT_F4        0x5700
  130. #define SHIFT_F5        0x5800
  131. #define SHIFT_F6        0x5900
  132. #define SHIFT_F7        0x5a00
  133. #define SHIFT_F8         0x5b00
  134. #define SHIFT_F9         0x5c00
  135. #define SHIFT_F10           0x5d00
  136. #define SHIFT_F11           0x5d00
  137. #define SHIFT_F12           0x5d00
  138. */
  139.  
  140. #endif
  141.