Back to index

im-sdk  12.3.91
Converter.h
Go to the documentation of this file.
00001 /* @(#)Converter.h   1.1 99/03/10
00002  * Copyright 1998 by Sun Microsystems, Inc., 901 San Antonio Road,
00003  * Palo Alto, California, 94303, U.S.A. All rights reserved.
00004  *
00005  * This software is the confidential and proprietary information of Sun
00006  * Microsystems, Inc. ("Confidential Information").  You shall not
00007  * disclose such Confidential Information and shall use it only in
00008  * accordance with the terms of the license agreement you entered
00009  * into with Sun.
00010  */
00011 
00012 #ifndef IMXK_CONVERTER_H
00013 #define IMXK_CONVERTER_H
00014 #endif
00015 
00016 #include "IMKeyMap.h"
00017 
00018 #define ShiftMask               (1L<<0)
00019 #define LockMask                (1L<<1)
00020 #define ControlMask             (1L<<2)
00021 #define Button1Mask             (1L<<8)
00022 #define Button2Mask             (1L<<9)
00023 #define Button3Mask             (1L<<10)
00024 
00025 typedef unsigned short KeySym;
00026 typedef int Bool;
00027 
00028 typedef struct KEYMAP_ENTRY {
00029     long awtKey;
00030     KeySym x11Key;
00031     Bool printable;
00032 } KeymapEntry;
00033 
00034 int awt_MetaMask = 0;
00035 int awt_AltMask = 8L;
00036 int awt_NumLockMask = 0;
00037 
00038 /* extract the definitions below from java header files */
00039 #undef java_awt_event_KeyEvent_COMPONENT_EVENT_MASK
00040 #define java_awt_event_KeyEvent_COMPONENT_EVENT_MASK 1LL
00041 #undef java_awt_event_KeyEvent_CONTAINER_EVENT_MASK
00042 #define java_awt_event_KeyEvent_CONTAINER_EVENT_MASK 2LL
00043 #undef java_awt_event_KeyEvent_FOCUS_EVENT_MASK
00044 #define java_awt_event_KeyEvent_FOCUS_EVENT_MASK 4LL
00045 #undef java_awt_event_KeyEvent_KEY_EVENT_MASK
00046 #define java_awt_event_KeyEvent_KEY_EVENT_MASK 8LL
00047 #undef java_awt_event_KeyEvent_MOUSE_EVENT_MASK
00048 #define java_awt_event_KeyEvent_MOUSE_EVENT_MASK 16LL
00049 #undef java_awt_event_KeyEvent_MOUSE_MOTION_EVENT_MASK
00050 #define java_awt_event_KeyEvent_MOUSE_MOTION_EVENT_MASK 32LL
00051 #undef java_awt_event_KeyEvent_WINDOW_EVENT_MASK
00052 #define java_awt_event_KeyEvent_WINDOW_EVENT_MASK 64LL
00053 #undef java_awt_event_KeyEvent_ACTION_EVENT_MASK
00054 #define java_awt_event_KeyEvent_ACTION_EVENT_MASK 128LL
00055 #undef java_awt_event_KeyEvent_ADJUSTMENT_EVENT_MASK
00056 #define java_awt_event_KeyEvent_ADJUSTMENT_EVENT_MASK 256LL
00057 #undef java_awt_event_KeyEvent_ITEM_EVENT_MASK
00058 #define java_awt_event_KeyEvent_ITEM_EVENT_MASK 512LL
00059 #undef java_awt_event_KeyEvent_TEXT_EVENT_MASK
00060 #define java_awt_event_KeyEvent_TEXT_EVENT_MASK 1024LL
00061 #undef java_awt_event_KeyEvent_RESERVED_ID_MAX
00062 #define java_awt_event_KeyEvent_RESERVED_ID_MAX 1999L
00063 #undef java_awt_event_KeyEvent_serialVersionUID
00064 #define java_awt_event_KeyEvent_serialVersionUID -1825314779160409405LL
00065 #undef java_awt_event_KeyEvent_COMPONENT_FIRST
00066 #define java_awt_event_KeyEvent_COMPONENT_FIRST 100L
00067 #undef java_awt_event_KeyEvent_COMPONENT_LAST
00068 #define java_awt_event_KeyEvent_COMPONENT_LAST 103L
00069 #undef java_awt_event_KeyEvent_COMPONENT_MOVED
00070 #define java_awt_event_KeyEvent_COMPONENT_MOVED 100L
00071 #undef java_awt_event_KeyEvent_COMPONENT_RESIZED
00072 #define java_awt_event_KeyEvent_COMPONENT_RESIZED 101L
00073 #undef java_awt_event_KeyEvent_COMPONENT_SHOWN
00074 #define java_awt_event_KeyEvent_COMPONENT_SHOWN 102L
00075 #undef java_awt_event_KeyEvent_COMPONENT_HIDDEN
00076 #define java_awt_event_KeyEvent_COMPONENT_HIDDEN 103L
00077 #undef java_awt_event_KeyEvent_serialVersionUID
00078 #define java_awt_event_KeyEvent_serialVersionUID 8101406823902992965LL
00079 #undef java_awt_event_KeyEvent_SHIFT_MASK
00080 #define java_awt_event_KeyEvent_SHIFT_MASK 1L
00081 #undef java_awt_event_KeyEvent_CTRL_MASK
00082 #define java_awt_event_KeyEvent_CTRL_MASK 2L
00083 #undef java_awt_event_KeyEvent_META_MASK
00084 #define java_awt_event_KeyEvent_META_MASK 4L
00085 #undef java_awt_event_KeyEvent_ALT_MASK
00086 #define java_awt_event_KeyEvent_ALT_MASK 8L
00087 #undef java_awt_event_KeyEvent_BUTTON1_MASK
00088 #define java_awt_event_KeyEvent_BUTTON1_MASK 16L
00089 #undef java_awt_event_KeyEvent_BUTTON2_MASK
00090 #define java_awt_event_KeyEvent_BUTTON2_MASK 8L
00091 #undef java_awt_event_KeyEvent_BUTTON3_MASK
00092 #define java_awt_event_KeyEvent_BUTTON3_MASK 4L
00093 #undef java_awt_event_KeyEvent_KEY_FIRST
00094 #define java_awt_event_KeyEvent_KEY_FIRST 400L
00095 #undef java_awt_event_KeyEvent_KEY_LAST
00096 #define java_awt_event_KeyEvent_KEY_LAST 402L
00097 #undef java_awt_event_KeyEvent_KEY_TYPED
00098 #define java_awt_event_KeyEvent_KEY_TYPED 400L
00099 #undef java_awt_event_KeyEvent_KEY_PRESSED
00100 #define java_awt_event_KeyEvent_KEY_PRESSED 401L
00101 #undef java_awt_event_KeyEvent_KEY_RELEASED
00102 #define java_awt_event_KeyEvent_KEY_RELEASED 402L
00103 #undef java_awt_event_KeyEvent_VK_ENTER
00104 #define java_awt_event_KeyEvent_VK_ENTER 10L
00105 #undef java_awt_event_KeyEvent_VK_BACK_SPACE
00106 #define java_awt_event_KeyEvent_VK_BACK_SPACE 8L
00107 #undef java_awt_event_KeyEvent_VK_TAB
00108 #define java_awt_event_KeyEvent_VK_TAB 9L
00109 #undef java_awt_event_KeyEvent_VK_CANCEL
00110 #define java_awt_event_KeyEvent_VK_CANCEL 3L
00111 #undef java_awt_event_KeyEvent_VK_CLEAR
00112 #define java_awt_event_KeyEvent_VK_CLEAR 12L
00113 #undef java_awt_event_KeyEvent_VK_SHIFT
00114 #define java_awt_event_KeyEvent_VK_SHIFT 16L
00115 #undef java_awt_event_KeyEvent_VK_CONTROL
00116 #define java_awt_event_KeyEvent_VK_CONTROL 17L
00117 #undef java_awt_event_KeyEvent_VK_ALT
00118 #define java_awt_event_KeyEvent_VK_ALT 18L
00119 #undef java_awt_event_KeyEvent_VK_PAUSE
00120 #define java_awt_event_KeyEvent_VK_PAUSE 19L
00121 #undef java_awt_event_KeyEvent_VK_CAPS_LOCK
00122 #define java_awt_event_KeyEvent_VK_CAPS_LOCK 20L
00123 #undef java_awt_event_KeyEvent_VK_ESCAPE
00124 #define java_awt_event_KeyEvent_VK_ESCAPE 27L
00125 #undef java_awt_event_KeyEvent_VK_SPACE
00126 #define java_awt_event_KeyEvent_VK_SPACE 32L
00127 #undef java_awt_event_KeyEvent_VK_PAGE_UP
00128 #define java_awt_event_KeyEvent_VK_PAGE_UP 33L
00129 #undef java_awt_event_KeyEvent_VK_PAGE_DOWN
00130 #define java_awt_event_KeyEvent_VK_PAGE_DOWN 34L
00131 #undef java_awt_event_KeyEvent_VK_END
00132 #define java_awt_event_KeyEvent_VK_END 35L
00133 #undef java_awt_event_KeyEvent_VK_HOME
00134 #define java_awt_event_KeyEvent_VK_HOME 36L
00135 #undef java_awt_event_KeyEvent_VK_LEFT
00136 #define java_awt_event_KeyEvent_VK_LEFT 37L
00137 #undef java_awt_event_KeyEvent_VK_UP
00138 #define java_awt_event_KeyEvent_VK_UP 38L
00139 #undef java_awt_event_KeyEvent_VK_RIGHT
00140 #define java_awt_event_KeyEvent_VK_RIGHT 39L
00141 #undef java_awt_event_KeyEvent_VK_DOWN
00142 #define java_awt_event_KeyEvent_VK_DOWN 40L
00143 #undef java_awt_event_KeyEvent_VK_COMMA
00144 #define java_awt_event_KeyEvent_VK_COMMA 44L
00145 #undef java_awt_event_KeyEvent_VK_PERIOD
00146 #define java_awt_event_KeyEvent_VK_PERIOD 46L
00147 #undef java_awt_event_KeyEvent_VK_SLASH
00148 #define java_awt_event_KeyEvent_VK_SLASH 47L
00149 #undef java_awt_event_KeyEvent_VK_0
00150 #define java_awt_event_KeyEvent_VK_0 48L
00151 #undef java_awt_event_KeyEvent_VK_1
00152 #define java_awt_event_KeyEvent_VK_1 49L
00153 #undef java_awt_event_KeyEvent_VK_2
00154 #define java_awt_event_KeyEvent_VK_2 50L
00155 #undef java_awt_event_KeyEvent_VK_3
00156 #define java_awt_event_KeyEvent_VK_3 51L
00157 #undef java_awt_event_KeyEvent_VK_4
00158 #define java_awt_event_KeyEvent_VK_4 52L
00159 #undef java_awt_event_KeyEvent_VK_5
00160 #define java_awt_event_KeyEvent_VK_5 53L
00161 #undef java_awt_event_KeyEvent_VK_6
00162 #define java_awt_event_KeyEvent_VK_6 54L
00163 #undef java_awt_event_KeyEvent_VK_7
00164 #define java_awt_event_KeyEvent_VK_7 55L
00165 #undef java_awt_event_KeyEvent_VK_8
00166 #define java_awt_event_KeyEvent_VK_8 56L
00167 #undef java_awt_event_KeyEvent_VK_9
00168 #define java_awt_event_KeyEvent_VK_9 57L
00169 #undef java_awt_event_KeyEvent_VK_SEMICOLON
00170 #define java_awt_event_KeyEvent_VK_SEMICOLON 59L
00171 #undef java_awt_event_KeyEvent_VK_EQUALS
00172 #define java_awt_event_KeyEvent_VK_EQUALS 61L
00173 #undef java_awt_event_KeyEvent_VK_A
00174 #define java_awt_event_KeyEvent_VK_A 65L
00175 #undef java_awt_event_KeyEvent_VK_B
00176 #define java_awt_event_KeyEvent_VK_B 66L
00177 #undef java_awt_event_KeyEvent_VK_C
00178 #define java_awt_event_KeyEvent_VK_C 67L
00179 #undef java_awt_event_KeyEvent_VK_D
00180 #define java_awt_event_KeyEvent_VK_D 68L
00181 #undef java_awt_event_KeyEvent_VK_E
00182 #define java_awt_event_KeyEvent_VK_E 69L
00183 #undef java_awt_event_KeyEvent_VK_F
00184 #define java_awt_event_KeyEvent_VK_F 70L
00185 #undef java_awt_event_KeyEvent_VK_G
00186 #define java_awt_event_KeyEvent_VK_G 71L
00187 #undef java_awt_event_KeyEvent_VK_H
00188 #define java_awt_event_KeyEvent_VK_H 72L
00189 #undef java_awt_event_KeyEvent_VK_I
00190 #define java_awt_event_KeyEvent_VK_I 73L
00191 #undef java_awt_event_KeyEvent_VK_J
00192 #define java_awt_event_KeyEvent_VK_J 74L
00193 #undef java_awt_event_KeyEvent_VK_K
00194 #define java_awt_event_KeyEvent_VK_K 75L
00195 #undef java_awt_event_KeyEvent_VK_L
00196 #define java_awt_event_KeyEvent_VK_L 76L
00197 #undef java_awt_event_KeyEvent_VK_M
00198 #define java_awt_event_KeyEvent_VK_M 77L
00199 #undef java_awt_event_KeyEvent_VK_N
00200 #define java_awt_event_KeyEvent_VK_N 78L
00201 #undef java_awt_event_KeyEvent_VK_O
00202 #define java_awt_event_KeyEvent_VK_O 79L
00203 #undef java_awt_event_KeyEvent_VK_P
00204 #define java_awt_event_KeyEvent_VK_P 80L
00205 #undef java_awt_event_KeyEvent_VK_Q
00206 #define java_awt_event_KeyEvent_VK_Q 81L
00207 #undef java_awt_event_KeyEvent_VK_R
00208 #define java_awt_event_KeyEvent_VK_R 82L
00209 #undef java_awt_event_KeyEvent_VK_S
00210 #define java_awt_event_KeyEvent_VK_S 83L
00211 #undef java_awt_event_KeyEvent_VK_T
00212 #define java_awt_event_KeyEvent_VK_T 84L
00213 #undef java_awt_event_KeyEvent_VK_U
00214 #define java_awt_event_KeyEvent_VK_U 85L
00215 #undef java_awt_event_KeyEvent_VK_V
00216 #define java_awt_event_KeyEvent_VK_V 86L
00217 #undef java_awt_event_KeyEvent_VK_W
00218 #define java_awt_event_KeyEvent_VK_W 87L
00219 #undef java_awt_event_KeyEvent_VK_X
00220 #define java_awt_event_KeyEvent_VK_X 88L
00221 #undef java_awt_event_KeyEvent_VK_Y
00222 #define java_awt_event_KeyEvent_VK_Y 89L
00223 #undef java_awt_event_KeyEvent_VK_Z
00224 #define java_awt_event_KeyEvent_VK_Z 90L
00225 #undef java_awt_event_KeyEvent_VK_OPEN_BRACKET
00226 #define java_awt_event_KeyEvent_VK_OPEN_BRACKET 91L
00227 #undef java_awt_event_KeyEvent_VK_BACK_SLASH
00228 #define java_awt_event_KeyEvent_VK_BACK_SLASH 92L
00229 #undef java_awt_event_KeyEvent_VK_CLOSE_BRACKET
00230 #define java_awt_event_KeyEvent_VK_CLOSE_BRACKET 93L
00231 #undef java_awt_event_KeyEvent_VK_NUMPAD0
00232 #define java_awt_event_KeyEvent_VK_NUMPAD0 96L
00233 #undef java_awt_event_KeyEvent_VK_NUMPAD1
00234 #define java_awt_event_KeyEvent_VK_NUMPAD1 97L
00235 #undef java_awt_event_KeyEvent_VK_NUMPAD2
00236 #define java_awt_event_KeyEvent_VK_NUMPAD2 98L
00237 #undef java_awt_event_KeyEvent_VK_NUMPAD3
00238 #define java_awt_event_KeyEvent_VK_NUMPAD3 99L
00239 #undef java_awt_event_KeyEvent_VK_NUMPAD4
00240 #define java_awt_event_KeyEvent_VK_NUMPAD4 100L
00241 #undef java_awt_event_KeyEvent_VK_NUMPAD5
00242 #define java_awt_event_KeyEvent_VK_NUMPAD5 101L
00243 #undef java_awt_event_KeyEvent_VK_NUMPAD6
00244 #define java_awt_event_KeyEvent_VK_NUMPAD6 102L
00245 #undef java_awt_event_KeyEvent_VK_NUMPAD7
00246 #define java_awt_event_KeyEvent_VK_NUMPAD7 103L
00247 #undef java_awt_event_KeyEvent_VK_NUMPAD8
00248 #define java_awt_event_KeyEvent_VK_NUMPAD8 104L
00249 #undef java_awt_event_KeyEvent_VK_NUMPAD9
00250 #define java_awt_event_KeyEvent_VK_NUMPAD9 105L
00251 #undef java_awt_event_KeyEvent_VK_MULTIPLY
00252 #define java_awt_event_KeyEvent_VK_MULTIPLY 106L
00253 #undef java_awt_event_KeyEvent_VK_ADD
00254 #define java_awt_event_KeyEvent_VK_ADD 107L
00255 #undef java_awt_event_KeyEvent_VK_SEPARATER
00256 #define java_awt_event_KeyEvent_VK_SEPARATER 108L
00257 #undef java_awt_event_KeyEvent_VK_SUBTRACT
00258 #define java_awt_event_KeyEvent_VK_SUBTRACT 109L
00259 #undef java_awt_event_KeyEvent_VK_DECIMAL
00260 #define java_awt_event_KeyEvent_VK_DECIMAL 110L
00261 #undef java_awt_event_KeyEvent_VK_DIVIDE
00262 #define java_awt_event_KeyEvent_VK_DIVIDE 111L
00263 #undef java_awt_event_KeyEvent_VK_F1
00264 #define java_awt_event_KeyEvent_VK_F1 112L
00265 #undef java_awt_event_KeyEvent_VK_F2
00266 #define java_awt_event_KeyEvent_VK_F2 113L
00267 #undef java_awt_event_KeyEvent_VK_F3
00268 #define java_awt_event_KeyEvent_VK_F3 114L
00269 #undef java_awt_event_KeyEvent_VK_F4
00270 #define java_awt_event_KeyEvent_VK_F4 115L
00271 #undef java_awt_event_KeyEvent_VK_F5
00272 #define java_awt_event_KeyEvent_VK_F5 116L
00273 #undef java_awt_event_KeyEvent_VK_F6
00274 #define java_awt_event_KeyEvent_VK_F6 117L
00275 #undef java_awt_event_KeyEvent_VK_F7
00276 #define java_awt_event_KeyEvent_VK_F7 118L
00277 #undef java_awt_event_KeyEvent_VK_F8
00278 #define java_awt_event_KeyEvent_VK_F8 119L
00279 #undef java_awt_event_KeyEvent_VK_F9
00280 #define java_awt_event_KeyEvent_VK_F9 120L
00281 #undef java_awt_event_KeyEvent_VK_F10
00282 #define java_awt_event_KeyEvent_VK_F10 121L
00283 #undef java_awt_event_KeyEvent_VK_F11
00284 #define java_awt_event_KeyEvent_VK_F11 122L
00285 #undef java_awt_event_KeyEvent_VK_F12
00286 #define java_awt_event_KeyEvent_VK_F12 123L
00287 #undef java_awt_event_KeyEvent_VK_DELETE
00288 #define java_awt_event_KeyEvent_VK_DELETE 127L
00289 #undef java_awt_event_KeyEvent_VK_NUM_LOCK
00290 #define java_awt_event_KeyEvent_VK_NUM_LOCK 144L
00291 #undef java_awt_event_KeyEvent_VK_SCROLL_LOCK
00292 #define java_awt_event_KeyEvent_VK_SCROLL_LOCK 145L
00293 #undef java_awt_event_KeyEvent_VK_PRINTSCREEN
00294 #define java_awt_event_KeyEvent_VK_PRINTSCREEN 154L
00295 #undef java_awt_event_KeyEvent_VK_INSERT
00296 #define java_awt_event_KeyEvent_VK_INSERT 155L
00297 #undef java_awt_event_KeyEvent_VK_HELP
00298 #define java_awt_event_KeyEvent_VK_HELP 156L
00299 #undef java_awt_event_KeyEvent_VK_META
00300 #define java_awt_event_KeyEvent_VK_META 157L
00301 #undef java_awt_event_KeyEvent_VK_BACK_QUOTE
00302 #define java_awt_event_KeyEvent_VK_BACK_QUOTE 192L
00303 #undef java_awt_event_KeyEvent_VK_QUOTE
00304 #define java_awt_event_KeyEvent_VK_QUOTE 222L
00305 #undef java_awt_event_KeyEvent_VK_FINAL
00306 #define java_awt_event_KeyEvent_VK_FINAL 24L
00307 #undef java_awt_event_KeyEvent_VK_CONVERT
00308 #define java_awt_event_KeyEvent_VK_CONVERT 28L
00309 #undef java_awt_event_KeyEvent_VK_NONCONVERT
00310 #define java_awt_event_KeyEvent_VK_NONCONVERT 29L
00311 #undef java_awt_event_KeyEvent_VK_ACCEPT
00312 #define java_awt_event_KeyEvent_VK_ACCEPT 30L
00313 #undef java_awt_event_KeyEvent_VK_MODECHANGE
00314 #define java_awt_event_KeyEvent_VK_MODECHANGE 31L
00315 #undef java_awt_event_KeyEvent_VK_KANA
00316 #define java_awt_event_KeyEvent_VK_KANA 21L
00317 #undef java_awt_event_KeyEvent_VK_KANJI
00318 #define java_awt_event_KeyEvent_VK_KANJI 25L
00319 #undef java_awt_event_KeyEvent_VK_UNDEFINED
00320 #define java_awt_event_KeyEvent_VK_UNDEFINED 0L
00321 #undef java_awt_event_KeyEvent_CHAR_UNDEFINED
00322 #define java_awt_event_KeyEvent_CHAR_UNDEFINED 0L
00323 
00324 #undef java_awt_event_InputEvent_SHIFT_MASK
00325 #define java_awt_event_InputEvent_SHIFT_MASK 1L
00326 #undef java_awt_event_InputEvent_CTRL_MASK
00327 #define java_awt_event_InputEvent_CTRL_MASK 2L
00328 #undef java_awt_event_InputEvent_META_MASK
00329 #define java_awt_event_InputEvent_META_MASK 4L
00330 #undef java_awt_event_InputEvent_ALT_MASK
00331 #define java_awt_event_InputEvent_ALT_MASK 8L
00332 #undef java_awt_event_InputEvent_BUTTON1_MASK
00333 #define java_awt_event_InputEvent_BUTTON1_MASK 16L
00334 #undef java_awt_event_InputEvent_BUTTON2_MASK
00335 #define java_awt_event_InputEvent_BUTTON2_MASK 8L
00336 #undef java_awt_event_InputEvent_BUTTON3_MASK
00337 #define java_awt_event_InputEvent_BUTTON3_MASK 4L
00338 
00339 enum {  MyFalse = 0, MyTrue = 1 };
00340 
00341 static KeymapEntry keymapTable[] = {
00342     { java_awt_event_KeyEvent_VK_A, IMXK_a, MyTrue },
00343     { java_awt_event_KeyEvent_VK_B, IMXK_b, MyTrue },
00344     { java_awt_event_KeyEvent_VK_C, IMXK_c, MyTrue },
00345     { java_awt_event_KeyEvent_VK_D, IMXK_d, MyTrue },
00346     { java_awt_event_KeyEvent_VK_E, IMXK_e, MyTrue },
00347     { java_awt_event_KeyEvent_VK_F, IMXK_f, MyTrue },
00348     { java_awt_event_KeyEvent_VK_G, IMXK_g, MyTrue },
00349     { java_awt_event_KeyEvent_VK_H, IMXK_h, MyTrue },
00350     { java_awt_event_KeyEvent_VK_I, IMXK_i, MyTrue },
00351     { java_awt_event_KeyEvent_VK_J, IMXK_j, MyTrue },
00352     { java_awt_event_KeyEvent_VK_K, IMXK_k, MyTrue },
00353     { java_awt_event_KeyEvent_VK_L, IMXK_l, MyTrue },
00354     { java_awt_event_KeyEvent_VK_M, IMXK_m, MyTrue },
00355     { java_awt_event_KeyEvent_VK_N, IMXK_n, MyTrue },
00356     { java_awt_event_KeyEvent_VK_O, IMXK_o, MyTrue },
00357     { java_awt_event_KeyEvent_VK_P, IMXK_p, MyTrue },
00358     { java_awt_event_KeyEvent_VK_Q, IMXK_q, MyTrue },
00359     { java_awt_event_KeyEvent_VK_R, IMXK_r, MyTrue },
00360     { java_awt_event_KeyEvent_VK_S, IMXK_s, MyTrue },
00361     { java_awt_event_KeyEvent_VK_T, IMXK_t, MyTrue },
00362     { java_awt_event_KeyEvent_VK_U, IMXK_u, MyTrue },
00363     { java_awt_event_KeyEvent_VK_V, IMXK_v, MyTrue },
00364     { java_awt_event_KeyEvent_VK_W, IMXK_w, MyTrue },
00365     { java_awt_event_KeyEvent_VK_X, IMXK_x, MyTrue },
00366     { java_awt_event_KeyEvent_VK_Y, IMXK_y, MyTrue },
00367     { java_awt_event_KeyEvent_VK_Z, IMXK_z, MyTrue },
00368 
00369     { java_awt_event_KeyEvent_VK_ENTER, IMXK_Return, MyTrue },
00370     { java_awt_event_KeyEvent_VK_ENTER, IMXK_KP_Enter, MyTrue },
00371     { java_awt_event_KeyEvent_VK_ENTER, IMXK_Linefeed, MyTrue },
00372 
00373     { java_awt_event_KeyEvent_VK_BACK_SPACE, IMXK_BackSpace, MyTrue },
00374     { java_awt_event_KeyEvent_VK_TAB, IMXK_Tab, MyTrue },
00375 /* { java_awt_event_KeyEvent_VK_CANCEL, IMXK_Cancel, MyFalse }, */
00376     { java_awt_event_KeyEvent_VK_CLEAR, IMXK_Clear, MyFalse },
00377     { java_awt_event_KeyEvent_VK_SHIFT, IMXK_Shift_L, MyFalse },
00378     { java_awt_event_KeyEvent_VK_SHIFT, IMXK_Shift_R, MyFalse },
00379     { java_awt_event_KeyEvent_VK_CONTROL, IMXK_Control_L, MyFalse },
00380     { java_awt_event_KeyEvent_VK_CONTROL, IMXK_Control_R, MyFalse },
00381     { java_awt_event_KeyEvent_VK_ALT, IMXK_Alt_L, MyFalse },
00382     { java_awt_event_KeyEvent_VK_ALT, IMXK_Alt_R, MyFalse },
00383     { java_awt_event_KeyEvent_VK_META, IMXK_Meta_L, MyFalse },
00384     { java_awt_event_KeyEvent_VK_META, IMXK_Meta_R, MyFalse },
00385     { java_awt_event_KeyEvent_VK_PAUSE, IMXK_Pause, MyFalse },
00386     { java_awt_event_KeyEvent_VK_CAPS_LOCK, IMXK_Caps_Lock, MyFalse },
00387     { java_awt_event_KeyEvent_VK_ESCAPE, IMXK_Escape, MyTrue },
00388     { java_awt_event_KeyEvent_VK_SPACE, IMXK_space, MyTrue },
00389 
00390     { java_awt_event_KeyEvent_VK_PAGE_UP, IMXK_Page_Up, MyFalse },
00391     { java_awt_event_KeyEvent_VK_PAGE_UP, IMXK_R9, MyFalse },
00392     { java_awt_event_KeyEvent_VK_PAGE_UP, IMXK_Prior, MyFalse },
00393     { java_awt_event_KeyEvent_VK_PAGE_DOWN, IMXK_Page_Down, MyFalse },
00394     { java_awt_event_KeyEvent_VK_PAGE_DOWN, IMXK_R15, MyFalse },
00395     { java_awt_event_KeyEvent_VK_PAGE_DOWN, IMXK_Next, MyFalse },
00396     { java_awt_event_KeyEvent_VK_END, IMXK_End, MyFalse },
00397     { java_awt_event_KeyEvent_VK_END, IMXK_R13, MyFalse },
00398     { java_awt_event_KeyEvent_VK_HOME, IMXK_Home, MyFalse },
00399     { java_awt_event_KeyEvent_VK_HOME, IMXK_R7, MyFalse },
00400 
00401     { java_awt_event_KeyEvent_VK_LEFT, IMXK_Left, MyFalse },
00402     { java_awt_event_KeyEvent_VK_UP, IMXK_Up, MyFalse },
00403     { java_awt_event_KeyEvent_VK_RIGHT, IMXK_Right, MyFalse },
00404     { java_awt_event_KeyEvent_VK_DOWN, IMXK_Down, MyFalse },
00405 /*    { java_awt_event_KeyEvent_VK_INSERT, IMXK_Insert, MyFalse },
00406     { java_awt_event_KeyEvent_VK_HELP, IMXK_Help, MyFalse },*/
00407 
00408     { java_awt_event_KeyEvent_VK_0, IMXK_0, MyTrue },
00409     { java_awt_event_KeyEvent_VK_1, IMXK_1, MyTrue },
00410     { java_awt_event_KeyEvent_VK_2, IMXK_2, MyTrue },
00411     { java_awt_event_KeyEvent_VK_3, IMXK_3, MyTrue },
00412     { java_awt_event_KeyEvent_VK_4, IMXK_4, MyTrue },
00413     { java_awt_event_KeyEvent_VK_5, IMXK_5, MyTrue },
00414     { java_awt_event_KeyEvent_VK_6, IMXK_6, MyTrue },
00415     { java_awt_event_KeyEvent_VK_7, IMXK_7, MyTrue },
00416     { java_awt_event_KeyEvent_VK_8, IMXK_8, MyTrue },
00417     { java_awt_event_KeyEvent_VK_9, IMXK_9, MyTrue },
00418 
00419     { java_awt_event_KeyEvent_VK_EQUALS, IMXK_equal, MyTrue },
00420     { java_awt_event_KeyEvent_VK_BACK_SLASH, IMXK_backslash, MyTrue },
00421     { java_awt_event_KeyEvent_VK_BACK_QUOTE, IMXK_grave, MyTrue },
00422     { java_awt_event_KeyEvent_VK_OPEN_BRACKET, IMXK_bracketleft, MyTrue },
00423     { java_awt_event_KeyEvent_VK_CLOSE_BRACKET, IMXK_bracketright, MyTrue },
00424     { java_awt_event_KeyEvent_VK_SEMICOLON, IMXK_semicolon, MyTrue },
00425     { java_awt_event_KeyEvent_VK_QUOTE, IMXK_apostrophe, MyTrue },
00426     { java_awt_event_KeyEvent_VK_COMMA, IMXK_comma, MyTrue },
00427     { java_awt_event_KeyEvent_VK_PERIOD, IMXK_period, MyTrue },
00428     { java_awt_event_KeyEvent_VK_SLASH, IMXK_slash, MyTrue },
00429 
00430     { java_awt_event_KeyEvent_VK_NUMPAD0, IMXK_KP_0, MyTrue },
00431     { java_awt_event_KeyEvent_VK_NUMPAD1, IMXK_KP_1, MyTrue },
00432     { java_awt_event_KeyEvent_VK_NUMPAD2, IMXK_KP_2, MyTrue },
00433     { java_awt_event_KeyEvent_VK_NUMPAD3, IMXK_KP_3, MyTrue },
00434     { java_awt_event_KeyEvent_VK_NUMPAD4, IMXK_KP_4, MyTrue },
00435     { java_awt_event_KeyEvent_VK_NUMPAD5, IMXK_KP_5, MyTrue },
00436     { java_awt_event_KeyEvent_VK_NUMPAD6, IMXK_KP_6, MyTrue },
00437     { java_awt_event_KeyEvent_VK_NUMPAD7, IMXK_KP_7, MyTrue },
00438     { java_awt_event_KeyEvent_VK_NUMPAD8, IMXK_KP_8, MyTrue },
00439     { java_awt_event_KeyEvent_VK_NUMPAD9, IMXK_KP_9, MyTrue },
00440     { java_awt_event_KeyEvent_VK_MULTIPLY, IMXK_KP_Multiply, MyTrue },
00441     { java_awt_event_KeyEvent_VK_ADD, IMXK_KP_Add, MyTrue },
00442     { java_awt_event_KeyEvent_VK_SUBTRACT, IMXK_KP_Subtract, MyTrue },
00443     { java_awt_event_KeyEvent_VK_DECIMAL, IMXK_KP_Decimal, MyTrue },
00444     { java_awt_event_KeyEvent_VK_DIVIDE, IMXK_KP_Divide, MyTrue },
00445     { java_awt_event_KeyEvent_VK_EQUALS, IMXK_KP_Equal, MyTrue },
00446     { java_awt_event_KeyEvent_VK_INSERT, IMXK_KP_Insert, MyFalse },
00447     { java_awt_event_KeyEvent_VK_ENTER, IMXK_KP_Enter, MyFalse },
00448 
00449     { java_awt_event_KeyEvent_VK_F1, IMXK_F1, MyFalse },
00450     { java_awt_event_KeyEvent_VK_F2, IMXK_F2, MyFalse },
00451     { java_awt_event_KeyEvent_VK_F3, IMXK_F3, MyFalse },
00452     { java_awt_event_KeyEvent_VK_F4, IMXK_F4, MyFalse },
00453     { java_awt_event_KeyEvent_VK_F5, IMXK_F5, MyFalse },
00454     { java_awt_event_KeyEvent_VK_F6, IMXK_F6, MyFalse },
00455     { java_awt_event_KeyEvent_VK_F7, IMXK_F7, MyFalse },
00456     { java_awt_event_KeyEvent_VK_F8, IMXK_F8, MyFalse },
00457     { java_awt_event_KeyEvent_VK_F9, IMXK_F9, MyFalse },
00458     { java_awt_event_KeyEvent_VK_F10, IMXK_F10, MyFalse },
00459     { java_awt_event_KeyEvent_VK_F11, IMXK_F11, MyFalse },
00460     { java_awt_event_KeyEvent_VK_F12, IMXK_F12, MyFalse },
00461 
00462     { java_awt_event_KeyEvent_VK_DELETE, IMXK_Delete, MyTrue },
00463     { java_awt_event_KeyEvent_VK_DELETE, IMXK_KP_Delete, MyTrue },
00464 
00465 /*    { java_awt_event_KeyEvent_VK_NUM_LOCK, IMXK_Num_Lock, MyFalse },*/
00466     { java_awt_event_KeyEvent_VK_SCROLL_LOCK, IMXK_Scroll_Lock, MyFalse },
00467 /*    { java_awt_event_KeyEvent_VK_PRINTSCREEN, IMXK_Print, MyFalse },*/
00468 
00469 /*    { java_awt_event_KeyEvent_VK_ACCEPT, IMXK_Execute, MyFalse },
00470     { java_awt_event_KeyEvent_VK_CONVERT, IMXK_Henkan, MyFalse },
00471     { java_awt_event_KeyEvent_VK_NONCONVERT, IMXK_Muhenkan, MyFalse },
00472     { java_awt_event_KeyEvent_VK_MODECHANGE, IMXK_Henkan_Mode, MyFalse },
00473     { java_awt_event_KeyEvent_VK_KANA, IMXK_Katakana, MyFalse },
00474     { java_awt_event_KeyEvent_VK_KANA, IMXK_kana_switch, MyFalse },
00475     { java_awt_event_KeyEvent_VK_KANJI, IMXK_Kanji, MyFalse },
00476 */
00477     { 0, 0, 0 }
00478 };
00479