keys.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. #define KB_ENTER 0x0D
  2. #define KB_DELETE 0x101
  3. #define KB_STO 0x102
  4. #define KB_SIN 0x103
  5. #define KB_COS 0x104
  6. #define KB_TAN 0x105
  7. #define KB_LN 0x106
  8. #define KB_CLEAR 0x107
  9. #define KB_ESC 0x108
  10. #define KB_MENU 0x109
  11. #define KB_MODE 0x10A
  12. #define KB_ON 0x10B
  13. #define KB_F1 0x10C
  14. #define KB_F2 0x10D
  15. #define KB_F3 0x10E
  16. #define KB_F4 0x10F
  17. #define KB_F5 0x110
  18. #define KB_F6 0x111
  19. #define KB_F7 0x112
  20. #define KB_F8 0x113
  21. #define KB_CHS 0x114
  22. #define KB_HOME KB_OPTION+'Q'
  23. #define KB_YEQ KB_OPTION+'W'
  24. #define KB_RANGE KB_OPTION+'E'
  25. #define KB_GRAPH KB_OPTION+'R'
  26. #define KB_TBLSET KB_OPTION+'T'
  27. #define KB_TABLE KB_OPTION+'Y'
  28. #define KB_ENTRY (KB_2ND+KB_ENTER)
  29. #define KB_SWITCH (KB_2ND+KB_MENU)
  30. #define KB_C_CED (KB_2ND+'C')
  31. #define KB_CAPS (KB_2ND+'Z')
  32. #define KB_TILDE (KB_2ND+'N')
  33. #define KB_CARET (KB_2ND+'O')
  34. #define KB_VARLINK (KB_2ND+'-')
  35. #define KB_CHAR (KB_2ND+'+')
  36. #define KB_ROOT (KB_2ND+'*')
  37. #define KB_CATLG (KB_2ND+'2')
  38. #define KB_CUSTOM (KB_2ND+'3')
  39. #define KB_SIGMA (KB_2ND+'4')
  40. #define KB_MATH (KB_2ND+'5')
  41. #define KB_MEM (KB_2ND+'6')
  42. #define KB_INTEGRAL (KB_2ND+'7')
  43. #define KB_DIFF (KB_2ND+'8')
  44. #define KB_INV_X (KB_2ND+'9')
  45. #define KB_ANS (KB_2ND+KB_CHS)
  46. #define KB_ACUTE (KB_2ND+'E')
  47. #define KB_UMLAUT (KB_2ND+'U')
  48. #define KB_GRAVE (KB_2ND+'A')
  49. #define KB_ESZET (KB_2ND+'S')
  50. #define KB_PGUP (KB_2ND+KB_UP)
  51. #define KB_PGDN (KB_2ND+KB_DOWN)
  52. #define KB_BEGIN (KB_2ND+KB_LEFT)
  53. #define KB_END (KB_2ND+KB_RIGHT)
  54. #define KB_INSERT (KB_2ND+KB_DELETE)
  55. #define KB_RCL (KB_2ND+KB_STO)
  56. #define KB_ASIN (KB_2ND+KB_SIN)
  57. #define KB_ACOS (KB_2ND+KB_COS)
  58. #define KB_ATAN (KB_2ND+KB_TAN)
  59. #define KB_ALN (KB_2ND+KB_LN)
  60. #define KB_SQRT (KB_2ND+KB_INV_X)
  61. #define KB_QUIT (KB_2ND+KB_ESC)
  62. #define KB_OFF (KB_2ND+KB_ON)
  63. #define KB_TOP (KB_OPTION+KB_UP)
  64. #define KB_BOTTOM (KB_OPTION+KB_DOWN)
  65. #define KB_RIGHT_MOST (KB_OPTION+KB_RIGHT)
  66. #define KB_LEFT_MOST (KB_OPTION+KB_LEFT)
  67. #define KB_GREEK (KB_OPTION+'G')
  68. #define KB_COPY (KB_OPTION+'C')
  69. #define KB_PASTE (KB_OPTION+'V')
  70. #define KB_CUT (KB_OPTION+'X')
  71. #define KB_HELP_KEYS (KB_OPTION+'K')
  72. #define KB_OPEN (KB_OPTION+'O')
  73. #define KB_SAVE_AS (KB_OPTION+'S')
  74. #define KB_NEW (KB_OPTION+'N')
  75. #define KB_FORMAT (KB_OPTION+'F')
  76. #define KB_UNITS (KB_OPTION+'P')
  77. #define KB_DELETE_RIGHT (KB_OPTION+KB_DELETE)
  78. #define KB_LEFT 0x151
  79. #define KB_UP 0x152
  80. #define KB_RIGHT 0x154
  81. #define KB_DOWN 0x158
  82. #define KB_MODIFIERS (KB_2ND|KB_OPTION|KB_SHIFT|KB_DRAG|KB_AUTOREPEAT)
  83. #define LIO_DC LIO_SPAM
  84. #define W_MIN_Y 18
  85. #define DLG_DEF_TEXT_WIDTH 180
  86. #define DLG_DEF_X0 8
  87. #define ST_SHIFTS (ST_2ND|ST_OPTION|ST_SHIFT)
  88. #elif defined(_89)
  89. #define MAX_X 159
  90. #define MAX_Y 99
  91. #define TV_PRODUCT TV_CRAM
  92. #define SC_2ND (1<<0)
  93. #define SC_SHIFT (1<<1)
  94. #define SC_DRAG (1<<1)
  95. #define SC_OPTION (1<<2)
  96. #define SC_ALPHA (1<<3)
  97. #define SC_CAPSLOCK (1<<4)
  98. #define SC_DRAGLOCK (1<<5)
  99. #define SC_ALPHALOCK (1<<5)
  100. #define KB_ENTER 0x0D
  101. #define KB_DELETE 0x101
  102. #define KB_STO 0x102
  103. #define KB_CLEAR 0x107
  104. #define KB_ESC 0x108
  105. #define KB_MENU 0x109
  106. #define KB_MODE 0x10A
  107. #define KB_ON 0x10B
  108. #define KB_F1 0x10C
  109. #define KB_F2 0x10D
  110. #define KB_F3 0x10E
  111. #define KB_F4 0x10F
  112. #define KB_F5 0x110
  113. #define KB_F6 0x111
  114. #define KB_F7 0x112
  115. #define KB_F8 0x113
  116. #define KB_CHS 0x114
  117. #define KB_HOME 0x115
  118. #define KB_CATLG 0x116
  119. #define KB_YEQ KB_OPTION+KB_F1
  120. #define KB_RANGE KB_OPTION+KB_F2
  121. #define KB_GRAPH KB_OPTION+KB_F3
  122. #define KB_TBLSET KB_OPTION+KB_F4
  123. #define KB_TABLE KB_OPTION+KB_F5
  124. #define KB_ENTRY (KB_2ND+KB_ENTER)
  125. #define KB_SWITCH (KB_2ND+KB_MENU)
  126. #define KB_C_CED (KB_2ND+'C')
  127. #define KB_TILDE (KB_2ND+'N')
  128. #define KB_CARET (KB_2ND+'O')
  129. #define KB_VARLINK (KB_2ND+'-')
  130. #define KB_CHAR (KB_2ND+'+')
  131. #define KB_ROOT (KB_2ND+'*')
  132. #define KB_CUSTOM (KB_2ND+KB_HOME)
  133. #define KB_UNITS (KB_2ND+'3')
  134. #define KB_MATH (KB_2ND+'5')
  135. #define KB_MEM (KB_2ND+'6')
  136. #define KB_INTEGRAL (KB_2ND+'7')
  137. #define KB_DIFF (KB_2ND+'8')
  138. #define KB_ANS (KB_2ND+KB_CHS)
  139. #define KB_ACUTE (KB_2ND+'E')
  140. #define KB_UMLAUT (KB_2ND+'U')
  141. #define KB_GRAVE (KB_2ND+'A')
  142. #define KB_ESZET (KB_2ND+'S')
  143. #define KB_PGUP (KB_2ND+KB_UP)
  144. #define KB_PGDN (KB_2ND+KB_DOWN)
  145. #define KB_BEGIN (KB_2ND+KB_LEFT)
  146. #define KB_END (KB_2ND+KB_RIGHT)
  147. #define KB_INSERT (KB_2ND+KB_DELETE)
  148. #define KB_RCL (KB_2ND+KB_STO)
  149. #define KB_SIN (KB_2ND+'Y')
  150. #define KB_COS (KB_2ND+'Z')
  151. #define KB_TAN (KB_2ND+'T')
  152. #define KB_LN (KB_2ND+'X')
  153. #define KB_ASIN (KB_OPTION+'Y')
  154. #define KB_ACOS (KB_OPTION+'Z')
  155. #define KB_ATAN (KB_OPTION+'T')
  156. #define KB_ALN (KB_OPTION+'X')
  157. #define KB_QUIT (KB_2ND+KB_ESC)
  158. #define KB_OFF (KB_2ND+KB_ON)
  159. #define KB_TOP (KB_OPTION+KB_UP)
  160. #define KB_BOTTOM (KB_OPTION+KB_DOWN)
  161. #define KB_RIGHT_MOST (KB_OPTION+KB_RIGHT)
  162. #define KB_LEFT_MOST (KB_OPTION+KB_LEFT)
  163. #define KB_COPY (KB_OPTION+KB_SHIFT)
  164. #define KB_PASTE (KB_OPTION+KB_ESC)
  165. #define KB_CUT (KB_OPTION+KB_2ND)
  166. #define KB_GREEK (KB_OPTION+'(')
  167. #define KB_HELP_KEYS (KB_OPTION+LF_EXPONENT)
  168. #define KB_OPEN (KB_OPTION+'O')
  169. #define KB_SAVE_AS (KB_OPTION+'S')
  170. #define KB_NEW (KB_OPTION+'N')
  171. #define KB_FORMAT (KB_OPTION+'|')
  172. #define KB_DELETE_RIGHT (KB_OPTION+KB_DELETE)
  173. #define KB_UNDER_SCORE (KB_OPTION+KB_MODE)
  174. #define KB_INFINITY (KB_OPTION+KB_CATLG)
  175. #define KB_THETA (KB_OPTION+'^')
  176. #define KB_AMPER (KB_OPTION+'*')
  177. #define KB_ATSIGN (KB_OPTION+KB_STO)
  178. #define KB_EXCLAM (KB_OPTION+'/')
  179. #define KB_COPYRIGHT (KB_OPTION+')')
  180. #define KB_CAPS (KB_SHIFT+KB_ALPHA)
  181. #define KB_ALOCK (KB_2ND+KB_ALPHA)
  182. #define KB_UP 0x151
  183. #define KB_LEFT 0x152
  184. #define KB_DOWN 0x154
  185. #define KB_RIGHT 0x158
  186. #define KB_MODIFIERS (KB_2ND|KB_OPTION|KB_SHIFT|KB_DRAG|KB_ALPHA|KB_AUTOREPEAT)