00001 // 00002 // key_codes.py 00003 // 00004 // S60 Python key code constants 00005 // Recommended usage: from key_codes import * 00006 // 00007 // Copyright (c) 2005 - 2007 Nokia Corporation 00008 // 00009 // Licensed under the Apache License, Version 2.0 (the "License"); 00010 // you may not use this file except in compliance with the License. 00011 // You may obtain a copy of the License at 00012 // 00013 // http://www.apache.org/licenses/LICENSE-2.0 00014 // 00015 // Unless required by applicable law or agreed to in writing, software 00016 // distributed under the License is distributed on an "AS IS" BASIS, 00017 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 // See the License for the specific language governing permissions and 00019 // limitations under the License. 00020 // 00021 00022 #ifndef __epoc_key_codes_hpp__ 00023 #define __epoc_key_codes_hpp__ 00024 00025 #include <e32keys.h> 00026 00027 // The following are not included in the Symbian headers. 00028 #define EKey0 0x30 00029 #define EKey1 0x31 00030 #define EKey2 0x32 00031 #define EKey3 0x33 00032 #define EKey4 0x34 00033 #define EKey5 0x35 00034 #define EKey6 0x36 00035 #define EKey7 0x37 00036 #define EKey8 0x38 00037 #define EKey9 0x39 00038 #define EKeyStar 0x2a 00039 #define EKeyHash 0x23 00040 00041 #define EKeyLeftSoftkey EKeyDevice0 00042 #define EKeyRightSoftkey EKeyDevice1 00043 #define EKeySelect EKeyDevice3 00044 #define EKeyEdit EKeyLeftShift 00045 #define EKeyMenu EKeyApplication0 00046 00047 #define ALL_KEY_CODES \ 00048 { \ 00049 EKeyBackspace, \ 00050 EKeyTab, \ 00051 EKeyLineFeed, \ 00052 EKeyVerticalTab, \ 00053 EKeyFormFeed, \ 00054 EKeyEnter, \ 00055 EKeyEscape, \ 00056 EKeySpace, \ 00057 EKeyDelete, \ 00058 EKeyPrintScreen, \ 00059 EKeyPause, \ 00060 EKeyHome, \ 00061 EKeyEnd, \ 00062 EKeyPageUp, \ 00063 EKeyPageDown, \ 00064 EKeyInsert, \ 00065 EKeyLeftArrow, \ 00066 EKeyRightArrow, \ 00067 EKeyUpArrow, \ 00068 EKeyDownArrow, \ 00069 EKeyLeftShift, \ 00070 EKeyRightShift, \ 00071 EKeyLeftAlt, \ 00072 EKeyRightAlt, \ 00073 EKeyLeftCtrl, \ 00074 EKeyRightCtrl, \ 00075 EKeyLeftFunc, \ 00076 EKeyRightFunc, \ 00077 EKeyCapsLock, \ 00078 EKeyNumLock, \ 00079 EKeyScrollLock, \ 00080 EKeyF1, \ 00081 EKeyF2, \ 00082 EKeyF3, \ 00083 EKeyF4, \ 00084 EKeyF5, \ 00085 EKeyF6, \ 00086 EKeyF7, \ 00087 EKeyF8, \ 00088 EKeyF9, \ 00089 EKeyF10, \ 00090 EKeyF11, \ 00091 EKeyF12, \ 00092 EKeyF13, \ 00093 EKeyF14, \ 00094 EKeyF15, \ 00095 EKeyF16, \ 00096 EKeyF17, \ 00097 EKeyF18, \ 00098 EKeyF19, \ 00099 EKeyF20, \ 00100 EKeyF21, \ 00101 EKeyF22, \ 00102 EKeyF23, \ 00103 EKeyF24, \ 00104 EKeyOff, \ 00105 EKeyIncContrast, \ 00106 EKeyDecContrast, \ 00107 EKeyBacklightOn, \ 00108 EKeyBacklightOff, \ 00109 EKeyBacklightToggle, \ 00110 EKeySliderDown, \ 00111 EKeySliderUp, \ 00112 EKeyMenu, \ 00113 EKeyDictaphonePlay, \ 00114 EKeyDictaphoneStop, \ 00115 EKeyDictaphoneRecord, \ 00116 EKeyHelp, \ 00117 EKeyDial, \ 00118 EKeyScreenDimension0, \ 00119 EKeyScreenDimension1, \ 00120 EKeyScreenDimension2, \ 00121 EKeyScreenDimension3, \ 00122 EKeyIncVolume, \ 00123 EKeyDecVolume, \ 00124 EKeyDevice0, \ 00125 EKeyDevice1, \ 00126 EKeyDevice2, \ 00127 EKeyDevice3, \ 00128 EKeyDevice4, \ 00129 EKeyDevice5, \ 00130 EKeyDevice6, \ 00131 EKeyDevice7, \ 00132 EKeyDevice8, \ 00133 EKeyDevice9, \ 00134 EKeyDeviceA, \ 00135 EKeyDeviceB, \ 00136 EKeyDeviceC, \ 00137 EKeyDeviceD, \ 00138 EKeyDeviceE, \ 00139 EKeyDeviceF, \ 00140 EKeyApplication0, \ 00141 EKeyApplication1, \ 00142 EKeyApplication2, \ 00143 EKeyApplication3, \ 00144 EKeyApplication4, \ 00145 EKeyApplication5, \ 00146 EKeyApplication6, \ 00147 EKeyApplication7, \ 00148 EKeyApplication8, \ 00149 EKeyApplication9, \ 00150 EKeyApplicationA, \ 00151 EKeyApplicationB, \ 00152 EKeyApplicationC, \ 00153 EKeyApplicationD, \ 00154 EKeyApplicationE, \ 00155 EKeyApplicationF, \ 00156 EKeyYes, \ 00157 EKeyNo, \ 00158 EKeyIncBrightness, \ 00159 EKeyDecBrightness, \ 00160 EKeyKeyboardExtend, \ 00161 EKeyDevice10, \ 00162 EKeyDevice11, \ 00163 EKeyDevice12, \ 00164 EKeyDevice13, \ 00165 EKeyDevice14, \ 00166 EKeyDevice15, \ 00167 EKeyDevice16, \ 00168 EKeyDevice17, \ 00169 EKeyDevice18, \ 00170 EKeyDevice19, \ 00171 EKeyDevice1A, \ 00172 EKeyDevice1B, \ 00173 EKeyDevice1C, \ 00174 EKeyDevice1D, \ 00175 EKeyDevice1E, \ 00176 EKeyDevice1F, \ 00177 EKeyApplication10, \ 00178 EKeyApplication11, \ 00179 EKeyApplication12, \ 00180 EKeyApplication13, \ 00181 EKeyApplication14, \ 00182 EKeyApplication15, \ 00183 EKeyApplication16, \ 00184 EKeyApplication17, \ 00185 EKeyApplication18, \ 00186 EKeyApplication19, \ 00187 EKeyApplication1A, \ 00188 EKeyApplication1B, \ 00189 EKeyApplication1C, \ 00190 EKeyApplication1D, \ 00191 EKeyApplication1E, \ 00192 EKeyApplication1F, \ 00193 EStdKeyBackspace, \ 00194 EStdKeyTab, \ 00195 EStdKeyEnter, \ 00196 EStdKeyEscape, \ 00197 EStdKeySpace, \ 00198 EStdKeyPrintScreen, \ 00199 EStdKeyPause, \ 00200 EStdKeyHome, \ 00201 EStdKeyEnd, \ 00202 EStdKeyPageUp, \ 00203 EStdKeyPageDown, \ 00204 EStdKeyInsert, \ 00205 EStdKeyDelete, \ 00206 EStdKeyLeftArrow, \ 00207 EStdKeyRightArrow, \ 00208 EStdKeyUpArrow, \ 00209 EStdKeyDownArrow, \ 00210 EStdKeyLeftShift, \ 00211 EStdKeyRightShift, \ 00212 EStdKeyLeftAlt, \ 00213 EStdKeyRightAlt, \ 00214 EStdKeyLeftCtrl, \ 00215 EStdKeyRightCtrl, \ 00216 EStdKeyLeftFunc, \ 00217 EStdKeyRightFunc, \ 00218 EStdKeyCapsLock, \ 00219 EStdKeyNumLock, \ 00220 EStdKeyScrollLock, \ 00221 EStdKeyF1, \ 00222 EStdKeyF2, \ 00223 EStdKeyF3, \ 00224 EStdKeyF4, \ 00225 EStdKeyF5, \ 00226 EStdKeyF6, \ 00227 EStdKeyF7, \ 00228 EStdKeyF8, \ 00229 EStdKeyF9, \ 00230 EStdKeyF10, \ 00231 EStdKeyF11, \ 00232 EStdKeyF12, \ 00233 EStdKeyF13, \ 00234 EStdKeyF14, \ 00235 EStdKeyF15, \ 00236 EStdKeyF16, \ 00237 EStdKeyF17, \ 00238 EStdKeyF18, \ 00239 EStdKeyF19, \ 00240 EStdKeyF20, \ 00241 EStdKeyF21, \ 00242 EStdKeyF22, \ 00243 EStdKeyF23, \ 00244 EStdKeyF24, \ 00245 EStdKeyXXX, \ 00246 EStdKeyComma, \ 00247 EStdKeyFullStop, \ 00248 EStdKeyForwardSlash, \ 00249 EStdKeyBackSlash, \ 00250 EStdKeySemiColon, \ 00251 EStdKeySingleQuote, \ 00252 EStdKeyHash, \ 00253 EStdKeySquareBracketLeft, \ 00254 EStdKeySquareBracketRight, \ 00255 EStdKeyMinus, \ 00256 EStdKeyEquals, \ 00257 EStdKeyNkpForwardSlash, \ 00258 EStdKeyNkpAsterisk, \ 00259 EStdKeyNkpMinus, \ 00260 EStdKeyNkpPlus, \ 00261 EStdKeyNkpEnter, \ 00262 EStdKeyNkp1, \ 00263 EStdKeyNkp2, \ 00264 EStdKeyNkp3, \ 00265 EStdKeyNkp4, \ 00266 EStdKeyNkp5, \ 00267 EStdKeyNkp6, \ 00268 EStdKeyNkp7, \ 00269 EStdKeyNkp8, \ 00270 EStdKeyNkp9, \ 00271 EStdKeyNkp0, \ 00272 EStdKeyNkpFullStop, \ 00273 EStdKeyMenu, \ 00274 EStdKeyBacklightOn, \ 00275 EStdKeyBacklightOff, \ 00276 EStdKeyBacklightToggle, \ 00277 EStdKeyIncContrast, \ 00278 EStdKeyDecContrast, \ 00279 EStdKeySliderDown, \ 00280 EStdKeySliderUp, \ 00281 EStdKeyDictaphonePlay, \ 00282 EStdKeyDictaphoneStop, \ 00283 EStdKeyDictaphoneRecord, \ 00284 EStdKeyHelp, \ 00285 EStdKeyOff, \ 00286 EStdKeyDial, \ 00287 EStdKeyIncVolume, \ 00288 EStdKeyDecVolume, \ 00289 EStdKeyDevice0, \ 00290 EStdKeyDevice1, \ 00291 EStdKeyDevice2, \ 00292 EStdKeyDevice3, \ 00293 EStdKeyDevice4, \ 00294 EStdKeyDevice5, \ 00295 EStdKeyDevice6, \ 00296 EStdKeyDevice7, \ 00297 EStdKeyDevice8, \ 00298 EStdKeyDevice9, \ 00299 EStdKeyDeviceA, \ 00300 EStdKeyDeviceB, \ 00301 EStdKeyDeviceC, \ 00302 EStdKeyDeviceD, \ 00303 EStdKeyDeviceE, \ 00304 EStdKeyDeviceF, \ 00305 EStdKeyApplication0, \ 00306 EStdKeyApplication1, \ 00307 EStdKeyApplication2, \ 00308 EStdKeyApplication3, \ 00309 EStdKeyApplication4, \ 00310 EStdKeyApplication5, \ 00311 EStdKeyApplication6, \ 00312 EStdKeyApplication7, \ 00313 EStdKeyApplication8, \ 00314 EStdKeyApplication9, \ 00315 EStdKeyApplicationA, \ 00316 EStdKeyApplicationB, \ 00317 EStdKeyApplicationC, \ 00318 EStdKeyApplicationD, \ 00319 EStdKeyApplicationE, \ 00320 EStdKeyApplicationF, \ 00321 EStdKeyYes, \ 00322 EStdKeyNo, \ 00323 EStdKeyIncBrightness, \ 00324 EStdKeyDecBrightness, \ 00325 EStdKeyKeyboardExtend, \ 00326 EStdKeyDevice10, \ 00327 EStdKeyDevice11, \ 00328 EStdKeyDevice12, \ 00329 EStdKeyDevice13, \ 00330 EStdKeyDevice14, \ 00331 EStdKeyDevice15, \ 00332 EStdKeyDevice16, \ 00333 EStdKeyDevice17, \ 00334 EStdKeyDevice18, \ 00335 EStdKeyDevice19, \ 00336 EStdKeyDevice1A, \ 00337 EStdKeyDevice1B, \ 00338 EStdKeyDevice1C, \ 00339 EStdKeyDevice1D, \ 00340 EStdKeyDevice1E, \ 00341 EStdKeyDevice1F, \ 00342 EStdKeyApplication10, \ 00343 EStdKeyApplication11, \ 00344 EStdKeyApplication12, \ 00345 EStdKeyApplication13, \ 00346 EStdKeyApplication14, \ 00347 EStdKeyApplication15, \ 00348 EStdKeyApplication16, \ 00349 EStdKeyApplication17, \ 00350 EStdKeyApplication18, \ 00351 EStdKeyApplication19, \ 00352 EStdKeyApplication1A, \ 00353 EStdKeyApplication1B, \ 00354 EStdKeyApplication1C, \ 00355 EStdKeyApplication1D, \ 00356 EStdKeyApplication1E, \ 00357 EStdKeyApplication1F, \ 00358 EKey0, \ 00359 EKey1, \ 00360 EKey2, \ 00361 EKey3, \ 00362 EKey4, \ 00363 EKey5, \ 00364 EKey6, \ 00365 EKey7, \ 00366 EKey8, \ 00367 EKey9, \ 00368 EKeyStar, \ 00369 EKeyHash, \ 00370 0 \ 00371 } 00372 00373 #define SELECT_KEY_CODES \ 00374 { \ 00375 EKeyLeftArrow, \ 00376 EKeyRightArrow, \ 00377 EKeyUpArrow, \ 00378 EKeyDownArrow, \ 00379 EKeyMenu, \ 00380 EKeyIncVolume, \ 00381 EKeyDecVolume, \ 00382 EKeyYes, \ 00383 EKeyNo, \ 00384 EKey0, \ 00385 EKey1, \ 00386 EKey2, \ 00387 EKey3, \ 00388 EKey4, \ 00389 EKey5, \ 00390 EKey6, \ 00391 EKey7, \ 00392 EKey8, \ 00393 EKey9, \ 00394 EKeyStar, \ 00395 EKeyHash, \ 00396 EKeyLeftSoftkey, \ 00397 EKeyRightSoftkey, \ 00398 EKeySelect, \ 00399 EKeyEdit, \ 00400 0 \ 00401 } 00402 00403 #endif /* __epoc_key_codes_hpp__ */
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:52 2011 by Doxygen 1.6.1