Back to index

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