Back to index

im-sdk  12.3.91
CIMKeyMap.h
Go to the documentation of this file.
00001 /*
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 _CIM_KEYMAP_H
00013 #define _CIM_KEYMAP_H
00014 
00015 #define _SUN_KEYBOARD
00016 
00017 #ifdef _SUN_KEYBOARD
00018 
00019 #define       IMSunXK_F36          0x1005FF10    /* Labeled F11 */
00020 #define       IMSunXK_F37          0x1005FF11    /* Labeled F12 */
00021 #define IMSunXK_PageUp             0x0000FF55    /* Same as IMXK_Prior */
00022 #define IMSunXK_PageDown    0x0000FF56    /* Same as IMXK_Next */
00023 #define IMSunXK_Compose            0x0000FF20    /* Same as IMXK_Multi_key */
00024 #define IMSunXK_AltGraph    0x0000FF7E    /* Same as IMXK_Mode_switch */
00025 
00026 #else
00027 
00028 #define       IMSunXK_F36          0x1005FF10    /* Labeled F11 */
00029 #define       IMSunXK_F37          0x1005FF11    /* Labeled F12 */
00030 #define IMSunXK_PageUp             0xFF55               /* Same as IMXK_Prior */
00031 #define IMSunXK_PageDown    0xFF56        /* Same as IMXK_Next */
00032 #define IMSunXK_Compose            0xFF20        /* Same as IMXK_Multi_key */
00033 #define IMSunXK_AltGraph    0x0000FF7E    /* Same as IMXK_Mode_switch */
00034 
00035 #endif   /* End of _SUN_KEYBOARD */
00036 
00037 
00038 #define IMVXK_QUOTER            0x27            /* Defined by MXL!!! */
00039 #define IMXK_REDRAW_INTERNAL    0xEEEE          /* Pesudo keysym Defined by MXL!!! */
00040 #define IMXK_QUIT_PYIM          0xDDDD           /* Quit PinYin Input Method. Defined by MXL!!!*/
00041 #define IMXK_ALT_QP_SP          0xCCCC           /* Switch Bewteen QuanPin and ShuangPin. Defined by MXL!!! */
00042 #define SUN_NUM_KEYSYM          5
00043 #define IMXK_MOUSEPREV          0xBBBB          /* Mouse Press to scroll to prev page. Defined by MXL!!! */
00044 #define IMXK_MOUSENEXT          0xAAAA          /* Mouse Press to scroll to next page. Defined by MXL!!! */
00045 
00046 #define IMXK_Mode_switch    0xFF7E /* Character set switch */
00047 #define IMXK_BackSpace             0xFF08 /* back space, back char */
00048 #define IMXK_Tab            0xFF09
00049 #define IMXK_Linefeed              0xFF0A /* Linefeed, LF */
00050 #define IMXK_Clear          0xFF0B
00051 #define IMXK_Return         0xFF0D /* Return, enter */
00052 #define IMXK_Pause          0xFF13 /* Pause, hold */
00053 #define IMXK_Scroll_Lock    0xFF14
00054 #define IMXK_Sys_Req        0xFF15
00055 #define IMXK_Escape         0xFF1B
00056 #define IMXK_Delete         0xFFFF /* Delete, rubout */
00057 #define IMXK_Multi_key             0xFF20  /* Multi-key character compose */
00058 
00059 #define IMXK_Home           0xFF50
00060 #define IMXK_Left           0xFF51 /* Move left, left arrow */
00061 #define IMXK_Up                    0xFF52 /* Move up, up arrow */
00062 #define IMXK_Right          0xFF53 /* Move right, right arrow */
00063 #define IMXK_Down           0xFF54 /* Move down, down arrow */
00064 #define IMXK_Prior          0xFF55 /* Prior, previous */
00065 #define IMXK_Page_Up        0xFF55
00066 #define IMXK_Next           0xFF56 /* Next */
00067 #define IMXK_Page_Down             0xFF56
00068 #define IMXK_End            0xFF57 /* EOL */
00069 #define IMXK_Begin          0xFF58 /* BOL */
00070 
00071 #define IMXK_KP_Space              0xFF80 /* space */
00072 #define IMXK_KP_Tab         0xFF89
00073 #define IMXK_KP_Enter              0xFF8D /* enter */
00074 #define IMXK_KP_F1          0xFF91 /* PF1, KP_A, ... */
00075 #define IMXK_KP_F2          0xFF92
00076 #define IMXK_KP_F3          0xFF93
00077 #define IMXK_KP_F4          0xFF94
00078 #define IMXK_KP_Home        0xFF95
00079 #define IMXK_KP_Left        0xFF96
00080 #define IMXK_KP_Up          0xFF97
00081 #define IMXK_KP_Right              0xFF98
00082 #define IMXK_KP_Down        0xFF99
00083 #define IMXK_KP_Prior              0xFF9A
00084 #define IMXK_KP_Page_Up            0xFF9A
00085 #define IMXK_KP_Next        0xFF9B
00086 #define IMXK_KP_Page_Down   0xFF9B
00087 #define IMXK_KP_End         0xFF9C
00088 #define IMXK_KP_Begin              0xFF9D
00089 #define IMXK_KP_Insert             0xFF9E
00090 #define IMXK_KP_Delete             0xFF9F
00091 #define IMXK_KP_Equal              0xFFBD /* equals */
00092 #define IMXK_KP_Multiply    0xFFAA
00093 #define IMXK_KP_Add         0xFFAB
00094 #define IMXK_KP_Separator   0xFFAC /* separator, often comma */
00095 #define IMXK_KP_Subtract    0xFFAD
00096 #define IMXK_KP_Decimal            0xFFAE
00097 #define IMXK_KP_Divide             0xFFAF
00098 
00099 #define IMXK_KP_0           0xFFB0
00100 #define IMXK_KP_1           0xFFB1
00101 #define IMXK_KP_2           0xFFB2
00102 #define IMXK_KP_3           0xFFB3
00103 #define IMXK_KP_4           0xFFB4
00104 #define IMXK_KP_5           0xFFB5
00105 #define IMXK_KP_6           0xFFB6
00106 #define IMXK_KP_7           0xFFB7
00107 #define IMXK_KP_8           0xFFB8
00108 #define IMXK_KP_9           0xFFB9
00109 
00110 
00111 /*
00112 ** Auxilliary Functions; note the duplicate definitions for left and right
00113 ** function keys;  Sun keyboards and a few other manufactures have such
00114 ** function key groups on the left and/or right sides of the keyboard.
00115 ** We've not found a keyboard with more than 35 function keys total.
00116 */
00117 #define IMXK_F1                    0xFFBE
00118 #define IMXK_F2                    0xFFBF
00119 #define IMXK_F3                    0xFFC0
00120 #define IMXK_F4                    0xFFC1
00121 #define IMXK_F5                    0xFFC2
00122 #define IMXK_F6                    0xFFC3
00123 #define IMXK_F7                    0xFFC4
00124 #define IMXK_F8                    0xFFC5
00125 #define IMXK_F9                    0xFFC6
00126 #define IMXK_F10            0xFFC7
00127 #define IMXK_F11            0xFFC8
00128 #define IMXK_L1                    0xFFC8
00129 #define IMXK_F12            0xFFC9
00130 #define IMXK_L2                    0xFFC9
00131 #define IMXK_F13            0xFFCA
00132 #define IMXK_L3                    0xFFCA
00133 #define IMXK_F14            0xFFCB
00134 #define IMXK_L4                    0xFFCB
00135 #define IMXK_F15            0xFFCC
00136 #define IMXK_L5                    0xFFCC
00137 #define IMXK_F16            0xFFCD
00138 #define IMXK_L6                    0xFFCD
00139 #define IMXK_F17            0xFFCE
00140 #define IMXK_L7                    0xFFCE
00141 #define IMXK_F18            0xFFCF
00142 #define IMXK_L8                    0xFFCF
00143 #define IMXK_F19            0xFFD0
00144 #define IMXK_L9                    0xFFD0
00145 #define IMXK_F20            0xFFD1
00146 #define IMXK_L10            0xFFD1
00147 #define IMXK_F21            0xFFD2
00148 #define IMXK_R1                    0xFFD2
00149 #define IMXK_F22            0xFFD3
00150 #define IMXK_R2                    0xFFD3
00151 #define IMXK_F23            0xFFD4
00152 #define IMXK_R3                    0xFFD4
00153 #define IMXK_F24            0xFFD5
00154 #define IMXK_R4                    0xFFD5
00155 #define IMXK_F25            0xFFD6
00156 #define IMXK_R5                    0xFFD6
00157 #define IMXK_F26            0xFFD7
00158 #define IMXK_R6                    0xFFD7
00159 #define IMXK_F27            0xFFD8
00160 #define IMXK_R7                    0xFFD8
00161 #define IMXK_F28            0xFFD9
00162 #define IMXK_R8                    0xFFD9
00163 #define IMXK_F29            0xFFDA
00164 #define IMXK_R9                    0xFFDA
00165 #define IMXK_F30            0xFFDB
00166 #define IMXK_R10            0xFFDB
00167 #define IMXK_F31            0xFFDC
00168 #define IMXK_R11            0xFFDC
00169 #define IMXK_F32            0xFFDD
00170 #define IMXK_R12            0xFFDD
00171 #define IMXK_F33            0xFFDE
00172 #define IMXK_R13            0xFFDE
00173 #define IMXK_F34            0xFFDF
00174 #define IMXK_R14            0xFFDF
00175 #define IMXK_F35            0xFFE0
00176 #define IMXK_R15            0xFFE0
00177 
00178 /* Modifiers */
00179 #define IMXK_Shift_L        0xFFE1 /* Left shift */
00180 #define IMXK_Shift_R        0xFFE2 /* Right shift */
00181 #define IMXK_Control_L             0xFFE3 /* Left control */
00182 #define IMXK_Control_R             0xFFE4 /* Right control */
00183 #define IMXK_Caps_Lock             0xFFE5 /* Caps lock */
00184 #define IMXK_Shift_Lock            0xFFE6 /* Shift lock */
00185 
00186 #define IMXK_Meta_L         0xFFE7 /* Left meta */
00187 #define IMXK_Meta_R         0xFFE8 /* Right meta */
00188 #define IMXK_Alt_L          0xFFE9 /* Left alt */
00189 #define IMXK_Alt_R          0xFFEA /* Right alt */
00190 #define IMXK_Super_L        0xFFEB /* Left super */
00191 #define IMXK_Super_R        0xFFEC /* Right super */
00192 #define IMXK_Hyper_L        0xFFED /* Left hyper */
00193 #define IMXK_Hyper_R        0xFFEE /* Right hyper */
00194 
00195 /*
00196 **  Latin 1  Byte3 = 0
00197 */
00198 #define IMXK_space               0x020
00199 #define IMXK_exclam              0x021
00200 #define IMXK_quotedbl            0x022
00201 #define IMXK_numbersign          0x023
00202 #define IMXK_dollar              0x024
00203 #define IMXK_percent             0x025
00204 #define IMXK_ampersand           0x026
00205 #define IMXK_apostrophe          0x027
00206 #define IMXK_quoteright          0x027    /* deprecated */
00207 #define IMXK_parenleft           0x028
00208 #define IMXK_parenright          0x029
00209 #define IMXK_asterisk            0x02a
00210 #define IMXK_plus                0x02b
00211 #define IMXK_comma               0x02c
00212 #define IMXK_minus               0x02d
00213 #define IMXK_period              0x02e
00214 #define IMXK_slash               0x02f
00215 #define IMXK_0                   0x030
00216 #define IMXK_1                   0x031
00217 #define IMXK_2                   0x032
00218 #define IMXK_3                   0x033
00219 #define IMXK_4                   0x034
00220 #define IMXK_5                   0x035
00221 #define IMXK_6                   0x036
00222 #define IMXK_7                   0x037
00223 #define IMXK_8                   0x038
00224 #define IMXK_9                   0x039
00225 #define IMXK_colon               0x03a
00226 #define IMXK_semicolon           0x03b
00227 #define IMXK_less                0x03c
00228 #define IMXK_equal               0x03d
00229 #define IMXK_greater             0x03e
00230 #define IMXK_question            0x03f
00231 #define IMXK_at                  0x040
00232 #define IMXK_A                   0x041
00233 #define IMXK_B                   0x042
00234 #define IMXK_C                   0x043
00235 #define IMXK_D                   0x044
00236 #define IMXK_E                   0x045
00237 #define IMXK_F                   0x046
00238 #define IMXK_G                   0x047
00239 #define IMXK_H                   0x048
00240 #define IMXK_I                   0x049
00241 #define IMXK_J                   0x04a
00242 #define IMXK_K                   0x04b
00243 #define IMXK_L                   0x04c
00244 #define IMXK_M                   0x04d
00245 #define IMXK_N                   0x04e
00246 #define IMXK_O                   0x04f
00247 #define IMXK_P                   0x050
00248 #define IMXK_Q                   0x051
00249 #define IMXK_R                   0x052
00250 #define IMXK_S                   0x053
00251 #define IMXK_T                   0x054
00252 #define IMXK_U                   0x055
00253 #define IMXK_V                   0x056
00254 #define IMXK_W                   0x057
00255 #define IMXK_X                   0x058
00256 #define IMXK_Y                   0x059
00257 #define IMXK_Z                   0x05a
00258 #define IMXK_bracketleft         0x05b
00259 #define IMXK_backslash           0x05c
00260 #define IMXK_bracketright        0x05d
00261 #define IMXK_asciicircum         0x05e
00262 #define IMXK_underscore          0x05f
00263 #define IMXK_grave               0x060
00264 #define IMXK_quoteleft           0x060    /* deprecated */
00265 #define IMXK_a                   0x061
00266 #define IMXK_b                   0x062
00267 #define IMXK_c                   0x063
00268 #define IMXK_d                   0x064
00269 #define IMXK_e                   0x065
00270 #define IMXK_f                   0x066
00271 #define IMXK_g                   0x067
00272 #define IMXK_h                   0x068
00273 #define IMXK_i                   0x069
00274 #define IMXK_j                   0x06a
00275 #define IMXK_k                   0x06b
00276 #define IMXK_l                   0x06c
00277 #define IMXK_m                   0x06d
00278 #define IMXK_n                   0x06e
00279 #define IMXK_o                   0x06f
00280 #define IMXK_p                   0x070
00281 #define IMXK_q                   0x071
00282 #define IMXK_r                   0x072
00283 #define IMXK_s                   0x073
00284 #define IMXK_t                   0x074
00285 #define IMXK_u                   0x075
00286 #define IMXK_v                   0x076
00287 #define IMXK_w                   0x077
00288 #define IMXK_x                   0x078
00289 #define IMXK_y                   0x079
00290 #define IMXK_z                   0x07a
00291 #define IMXK_braceleft           0x07b
00292 #define IMXK_bar                 0x07c
00293 #define IMXK_braceright          0x07d
00294 #define IMXK_asciitilde          0x07e
00295 
00296 
00297 #endif   /* End of _CIM_KEYMAP_H */
00298