| 1 |
(* |
| 2 |
* Copyright (C) 2010 The Android Open Source Project |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
| 6 |
* You may obtain a copy of the License at |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 10 |
* Unless required by applicable law or agreed to in writing, software |
| 11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
* See the License for the specific language governing permissions and |
| 14 |
* limitations under the License. |
| 15 |
*) |
| 16 |
|
| 17 |
// Note: This translation does not limit itself to the NDK defined constants |
| 18 |
// but instead all constants from android.view.KeyEvent can be added here |
| 19 |
// |
| 20 |
// The NDK files are located in usr/include/android/keycodes.h |
| 21 |
|
| 22 |
{ @exclude Internal for the engine. } |
| 23 |
unit CastleAndroidInternalKeycodes; |
| 24 |
|
| 25 |
{$I castleconf.inc} |
| 26 |
|
| 27 |
interface |
| 28 |
|
| 29 |
uses ctypes; |
| 30 |
|
| 31 |
(****************************************************************** |
| 32 |
* |
| 33 |
* IMPORTANT NOTICE: |
| 34 |
* |
| 35 |
* This file is part of Android's set of stable system headers |
| 36 |
* exposed by the Android NDK (Native Development Kit). |
| 37 |
* |
| 38 |
* Third-party source AND binary code relies on the definitions |
| 39 |
* here to be FROZEN ON ALL UPCOMING PLATFORM RELEASES. |
| 40 |
* |
| 41 |
* - DO NOT MODIFY ENUMS (EXCEPT IF YOU ADD NEW 32-BIT VALUES) |
| 42 |
* - DO NOT MODIFY CONSTANTS OR FUNCTIONAL MACROS |
| 43 |
* - DO NOT CHANGE THE SIGNATURE OF FUNCTIONS IN ANY WAY |
| 44 |
* - DO NOT CHANGE THE LAYOUT OR SIZE OF STRUCTURES |
| 45 |
*) |
| 46 |
|
| 47 |
(* |
| 48 |
* Key codes. |
| 49 |
*) |
| 50 |
|
| 51 |
const |
| 52 |
// First NDK defined keycodes |
| 53 |
|
| 54 |
AKEYCODE_UNKNOWN = 0; |
| 55 |
AKEYCODE_SOFT_LEFT = 1; |
| 56 |
AKEYCODE_SOFT_RIGHT = 2; |
| 57 |
AKEYCODE_HOME = 3; |
| 58 |
AKEYCODE_BACK = 4; |
| 59 |
AKEYCODE_CALL = 5; |
| 60 |
AKEYCODE_ENDCALL = 6; |
| 61 |
AKEYCODE_0 = 7; |
| 62 |
AKEYCODE_1 = 8; |
| 63 |
AKEYCODE_2 = 9; |
| 64 |
AKEYCODE_3 = 10; |
| 65 |
AKEYCODE_4 = 11; |
| 66 |
AKEYCODE_5 = 12; |
| 67 |
AKEYCODE_6 = 13; |
| 68 |
AKEYCODE_7 = 14; |
| 69 |
AKEYCODE_8 = 15; |
| 70 |
AKEYCODE_9 = 16; |
| 71 |
AKEYCODE_STAR = 17; |
| 72 |
AKEYCODE_POUND = 18; |
| 73 |
AKEYCODE_DPAD_UP = 19; |
| 74 |
AKEYCODE_DPAD_DOWN = 20; |
| 75 |
AKEYCODE_DPAD_LEFT = 21; |
| 76 |
AKEYCODE_DPAD_RIGHT = 22; |
| 77 |
AKEYCODE_DPAD_CENTER = 23; |
| 78 |
AKEYCODE_VOLUME_UP = 24; |
| 79 |
AKEYCODE_VOLUME_DOWN = 25; |
| 80 |
AKEYCODE_POWER = 26; |
| 81 |
AKEYCODE_CAMERA = 27; |
| 82 |
AKEYCODE_CLEAR = 28; |
| 83 |
AKEYCODE_A = 29; |
| 84 |
AKEYCODE_B = 30; |
| 85 |
AKEYCODE_C = 31; |
| 86 |
AKEYCODE_D = 32; |
| 87 |
AKEYCODE_E = 33; |
| 88 |
AKEYCODE_F = 34; |
| 89 |
AKEYCODE_G = 35; |
| 90 |
AKEYCODE_H = 36; |
| 91 |
AKEYCODE_I = 37; |
| 92 |
AKEYCODE_J = 38; |
| 93 |
AKEYCODE_K = 39; |
| 94 |
AKEYCODE_L = 40; |
| 95 |
AKEYCODE_M = 41; |
| 96 |
AKEYCODE_N = 42; |
| 97 |
AKEYCODE_O = 43; |
| 98 |
AKEYCODE_P = 44; |
| 99 |
AKEYCODE_Q = 45; |
| 100 |
AKEYCODE_R = 46; |
| 101 |
AKEYCODE_S = 47; |
| 102 |
AKEYCODE_T = 48; |
| 103 |
AKEYCODE_U = 49; |
| 104 |
AKEYCODE_V = 50; |
| 105 |
AKEYCODE_W = 51; |
| 106 |
AKEYCODE_X = 52; |
| 107 |
AKEYCODE_Y = 53; |
| 108 |
AKEYCODE_Z = 54; |
| 109 |
AKEYCODE_COMMA = 55; |
| 110 |
AKEYCODE_PERIOD = 56; |
| 111 |
AKEYCODE_ALT_LEFT = 57; |
| 112 |
AKEYCODE_ALT_RIGHT = 58; |
| 113 |
AKEYCODE_SHIFT_LEFT = 59; |
| 114 |
AKEYCODE_SHIFT_RIGHT = 60; |
| 115 |
AKEYCODE_TAB = 61; |
| 116 |
AKEYCODE_SPACE = 62; |
| 117 |
AKEYCODE_SYM = 63; |
| 118 |
AKEYCODE_EXPLORER = 64; |
| 119 |
AKEYCODE_ENVELOPE = 65; |
| 120 |
AKEYCODE_ENTER = 66; |
| 121 |
AKEYCODE_DEL = 67; |
| 122 |
AKEYCODE_GRAVE = 68; |
| 123 |
AKEYCODE_MINUS = 69; |
| 124 |
AKEYCODE_EQUALS = 70; |
| 125 |
AKEYCODE_LEFT_BRACKET = 71; |
| 126 |
AKEYCODE_RIGHT_BRACKET = 72; |
| 127 |
AKEYCODE_BACKSLASH = 73; |
| 128 |
AKEYCODE_SEMICOLON = 74; |
| 129 |
AKEYCODE_APOSTROPHE = 75; |
| 130 |
AKEYCODE_SLASH = 76; |
| 131 |
AKEYCODE_AT = 77; |
| 132 |
AKEYCODE_NUM = 78; |
| 133 |
AKEYCODE_HEADSETHOOK = 79; |
| 134 |
AKEYCODE_FOCUS = 80; // *Camera* focus |
| 135 |
AKEYCODE_PLUS = 81; |
| 136 |
AKEYCODE_MENU = 82; |
| 137 |
AKEYCODE_NOTIFICATION = 83; |
| 138 |
AKEYCODE_SEARCH = 84; |
| 139 |
AKEYCODE_MEDIA_PLAY_PAUSE = 85; |
| 140 |
AKEYCODE_MEDIA_STOP = 86; |
| 141 |
AKEYCODE_MEDIA_NEXT = 87; |
| 142 |
AKEYCODE_MEDIA_PREVIOUS = 88; |
| 143 |
AKEYCODE_MEDIA_REWIND = 89; |
| 144 |
AKEYCODE_MEDIA_FAST_FORWARD = 90; |
| 145 |
AKEYCODE_MUTE = 91; |
| 146 |
AKEYCODE_PAGE_UP = 92; |
| 147 |
AKEYCODE_PAGE_DOWN = 93; |
| 148 |
AKEYCODE_PICTSYMBOLS = 94; |
| 149 |
AKEYCODE_SWITCH_CHARSET = 95; |
| 150 |
AKEYCODE_BUTTON_A = 96; |
| 151 |
AKEYCODE_BUTTON_B = 97; |
| 152 |
AKEYCODE_BUTTON_C = 98; |
| 153 |
AKEYCODE_BUTTON_X = 99; |
| 154 |
AKEYCODE_BUTTON_Y = 100; |
| 155 |
AKEYCODE_BUTTON_Z = 101; |
| 156 |
AKEYCODE_BUTTON_L1 = 102; |
| 157 |
AKEYCODE_BUTTON_R1 = 103; |
| 158 |
AKEYCODE_BUTTON_L2 = 104; |
| 159 |
AKEYCODE_BUTTON_R2 = 105; |
| 160 |
AKEYCODE_BUTTON_THUMBL = 106; |
| 161 |
AKEYCODE_BUTTON_THUMBR = 107; |
| 162 |
AKEYCODE_BUTTON_START = 108; |
| 163 |
AKEYCODE_BUTTON_SELECT = 109; |
| 164 |
AKEYCODE_BUTTON_MODE = 110; |
| 165 |
|
| 166 |
// Now all elements from android.view.KeyEvent |
| 167 |
|
| 168 |
ACTION_DOWN = 0; |
| 169 |
ACTION_MULTIPLE = 2; |
| 170 |
ACTION_UP = 1; |
| 171 |
FLAG_CANCELED = $20; |
| 172 |
FLAG_CANCELED_LONG_PRESS = $100; |
| 173 |
FLAG_EDITOR_ACTION = $10; |
| 174 |
FLAG_FALLBACK = $400; |
| 175 |
FLAG_FROM_SYSTEM = 8; |
| 176 |
FLAG_KEEP_TOUCH_MODE = 4; |
| 177 |
FLAG_LONG_PRESS = $80; |
| 178 |
FLAG_SOFT_KEYBOARD = 2; |
| 179 |
FLAG_TRACKING = $200; |
| 180 |
FLAG_VIRTUAL_HARD_KEY = $40; |
| 181 |
FLAG_WOKE_HERE = 1; |
| 182 |
KEYCODE_0 = 7; |
| 183 |
KEYCODE_1 = 8; |
| 184 |
KEYCODE_2 = 9; |
| 185 |
KEYCODE_3 = 10; |
| 186 |
KEYCODE_3D_MODE = $000000ce; // 3D Mode key. Toggles the display between 2D and 3D mode. |
| 187 |
KEYCODE_4 = 11; |
| 188 |
KEYCODE_5 = 12; |
| 189 |
KEYCODE_6 = 13; |
| 190 |
KEYCODE_7 = 14; |
| 191 |
KEYCODE_8 = 15; |
| 192 |
KEYCODE_9 = 16; |
| 193 |
KEYCODE_A = 29; |
| 194 |
KEYCODE_ALT_LEFT = $00000039; |
| 195 |
KEYCODE_ALT_RIGHT = $0000003a; |
| 196 |
KEYCODE_APOSTROPHE = $0000004b; |
| 197 |
KEYCODE_APP_SWITCH = $000000bb; |
| 198 |
KEYCODE_AT = $0000004d; |
| 199 |
KEYCODE_AVR_INPUT = $000000b6; |
| 200 |
KEYCODE_AVR_POWER = $000000b5; |
| 201 |
KEYCODE_B = 30; |
| 202 |
KEYCODE_BACK = 4; |
| 203 |
KEYCODE_BACKSLASH = $00000049; |
| 204 |
KEYCODE_BOOKMARK = $000000ae; |
| 205 |
KEYCODE_BREAK = $00000079; |
| 206 |
KEYCODE_BUTTON_1 = $000000bc; |
| 207 |
KEYCODE_BUTTON_10 = $000000c5; |
| 208 |
KEYCODE_BUTTON_11 = $000000c6; |
| 209 |
KEYCODE_BUTTON_12 = $000000c7; |
| 210 |
KEYCODE_BUTTON_13 = $000000c8; |
| 211 |
KEYCODE_BUTTON_14 = $000000c9; |
| 212 |
KEYCODE_BUTTON_15 = $000000ca; |
| 213 |
KEYCODE_BUTTON_16 = $000000cb; // Generic Game Pad Button #16. |
| 214 |
KEYCODE_BUTTON_2 = $000000bd; // Generic Game Pad Button #2. |
| 215 |
KEYCODE_BUTTON_3 = $000000be; |
| 216 |
KEYCODE_BUTTON_4 = $000000bf; |
| 217 |
KEYCODE_BUTTON_5 = $000000c0; |
| 218 |
KEYCODE_BUTTON_6 = $000000c1; |
| 219 |
KEYCODE_BUTTON_7 = $000000c2; |
| 220 |
KEYCODE_BUTTON_8 = $000000c3; |
| 221 |
KEYCODE_BUTTON_9 = $000000c4; // Generic Game Pad Button #9. |
| 222 |
KEYCODE_BUTTON_A = $00000060; // A Button key. On a game controller, the A button should be either the button labeled A or the first button on the upper row of controller buttons. |
| 223 |
KEYCODE_BUTTON_B = $00000061; |
| 224 |
KEYCODE_BUTTON_C = $00000062; |
| 225 |
KEYCODE_BUTTON_L1 = $00000066; // L1 Button key. On a game controller, the L1 button should be either the button labeled L1 (or L) or the top left trigger button. |
| 226 |
KEYCODE_BUTTON_L2 = $00000068; |
| 227 |
KEYCODE_BUTTON_MODE = $0000006e; // Mode Button key. On a game controller, the button labeled Mode. |
| 228 |
KEYCODE_BUTTON_R1 = $00000067; // R1 Button key. On a game controller, the R1 button should be either the button labeled R1 (or R) or the top right trigger button. |
| 229 |
KEYCODE_BUTTON_R2 = $00000069; // R2 Button key. On a game controller, the R2 button should be either the button labeled R2 or the bottom right trigger button. |
| 230 |
KEYCODE_BUTTON_SELECT = $0000006d; // Select Button key. On a game controller, the button labeled Select. |
| 231 |
KEYCODE_BUTTON_START = $0000006c; // Start Button key. On a game controller, the button labeled Start. |
| 232 |
KEYCODE_BUTTON_THUMBL = $0000006a; // Left Thumb Button key. On a game controller, the left thumb button indicates that the left (or only) joystick is pressed. |
| 233 |
KEYCODE_BUTTON_THUMBR = $0000006b; // Right Thumb Button key. On a game controller, the right thumb button indicates that the right joystick is pressed. |
| 234 |
KEYCODE_BUTTON_X = $00000063; // X Button key. On a game controller, the X button should be either the button labeled X or the first button on the lower row of controller buttons. |
| 235 |
KEYCODE_BUTTON_Y = $00000064; // Y Button key. On a game controller, the Y button should be either the button labeled Y or the second button on the lower row of controller buttons. |
| 236 |
KEYCODE_BUTTON_Z = $00000065; // Z Button key. On a game controller, the Z button should be either the button labeled Z or the third button on the lower row of controller buttons. |
| 237 |
KEYCODE_C = 31; // 'C' key. |
| 238 |
KEYCODE_CALCULATOR = $000000d2; // Calculator special function key. Used to launch a calculator application. |
| 239 |
KEYCODE_CALENDAR = $000000d0; // Calendar special function key. Used to launch a calendar application. |
| 240 |
KEYCODE_CALL = $00000005; // Call key. |
| 241 |
KEYCODE_CAMERA = $0000001b; // Camera key. Used to launch a camera application or take pictures. |
| 242 |
KEYCODE_CAPS_LOCK = $00000073; |
| 243 |
KEYCODE_CAPTIONS = $000000af; // Toggle captions key. Switches the mode for closed-captioning text, for example during television shows. |
| 244 |
KEYCODE_CHANNEL_DOWN = $000000a7; // Channel down key. On TV remotes, decrements the television channel. |
| 245 |
KEYCODE_CHANNEL_UP = $000000a6; // Channel up key. On TV remotes, increments the television channel. |
| 246 |
KEYCODE_CLEAR = $0000001c; |
| 247 |
KEYCODE_COMMA = $00000037; |
| 248 |
KEYCODE_CONTACTS = $000000cf; // Contacts special function key. Used to launch an address book application. |
| 249 |
KEYCODE_CTRL_LEFT = $00000071; // Left Control modifier key. |
| 250 |
KEYCODE_CTRL_RIGHT = $00000072; // Right Control modifier key. |
| 251 |
KEYCODE_D = 32; |
| 252 |
KEYCODE_DEL = $00000043; // Backspace key. Deletes characters before the insertion point, unlike KEYCODE_FORWARD_DEL. |
| 253 |
KEYCODE_DPAD_CENTER = $00000017; // Directional Pad Center key. May also be synthesized from trackball motions. |
| 254 |
KEYCODE_DPAD_DOWN = $00000014; // Directional Pad Down key. May also be synthesized from trackball motions. |
| 255 |
KEYCODE_DPAD_LEFT = $00000015; // Directional Pad Left key. May also be synthesized from trackball motions. |
| 256 |
KEYCODE_DPAD_RIGHT = $00000016; // Directional Pad Right key. May also be synthesized from trackball motions. |
| 257 |
KEYCODE_DPAD_UP = $00000013; // Directional Pad Up key. May also be synthesized from trackball motions. |
| 258 |
KEYCODE_DVR = $000000ad; // DVR key. On some TV remotes, switches to a DVR mode for recorded shows. |
| 259 |
KEYCODE_E = 33; |
| 260 |
KEYCODE_ENDCALL = $00000006; // End Call key. |
| 261 |
KEYCODE_ENTER = $00000042; // Enter key. |
| 262 |
KEYCODE_ENVELOPE = $00000041; // Envelope special function key. Used to launch a mail application. |
| 263 |
KEYCODE_EQUALS = $00000046; // '=' key. |
| 264 |
KEYCODE_ESCAPE = $0000006f; // Escape key. |
| 265 |
KEYCODE_EXPLORER = $00000040; // Explorer special function key. Used to launch a browser application. |
| 266 |
KEYCODE_F = 34; // 'F' key. |
| 267 |
KEYCODE_F1 = $00000083; |
| 268 |
KEYCODE_F10 = $0000008c; |
| 269 |
KEYCODE_F11 = $0000008d; |
| 270 |
KEYCODE_F12 = $0000008e; |
| 271 |
KEYCODE_F2 = $00000084; |
| 272 |
KEYCODE_F3 = $00000085; |
| 273 |
KEYCODE_F4 = $00000086; |
| 274 |
KEYCODE_F5 = $00000087; |
| 275 |
KEYCODE_F6 = $00000088; |
| 276 |
KEYCODE_F7 = $00000089; |
| 277 |
KEYCODE_F8 = $0000008a; |
| 278 |
KEYCODE_F9 = $0000008b; |
| 279 |
KEYCODE_FOCUS = $00000050; // Camera Focus key. Used to focus the camera. |
| 280 |
KEYCODE_FORWARD = $0000007d; // Forward key. Navigates forward in the history stack. Complement of KEYCODE_BACK. |
| 281 |
KEYCODE_FORWARD_DEL = $00000070; // Forward Delete key. Deletes characters ahead of the insertion point, unlike KEYCODE_DEL. |
| 282 |
KEYCODE_FUNCTION = $00000077; // Function modifier key. |
| 283 |
KEYCODE_G = 35; |
| 284 |
KEYCODE_GRAVE = $00000044; // '`' (backtick) key. |
| 285 |
KEYCODE_GUIDE = $000000ac; // Guide key. On TV remotes, shows a programming guide. |
| 286 |
KEYCODE_H = 36; |
| 287 |
KEYCODE_HEADSETHOOK = $0000004f; // Headset Hook key. Used to hang up calls and stop media. |
| 288 |
KEYCODE_HOME = $00000003; // Home key. This key is handled by the framework and is never delivered to applications. |
| 289 |
KEYCODE_I = 37; |
| 290 |
KEYCODE_INFO = $000000a5; // Info key. Common on TV remotes to show additional information related to what is currently being viewed. |
| 291 |
KEYCODE_INSERT = $0000007c; // Insert key. Toggles insert / overwrite edit mode. |
| 292 |
KEYCODE_J = 38; |
| 293 |
KEYCODE_K = 39; |
| 294 |
KEYCODE_L = 40; |
| 295 |
KEYCODE_LANGUAGE_SWITCH = $000000cc; // Language Switch key. Toggles the current input language such as switching between English and Japanese on a QWERTY keyboard. On some devices, the same function may be performed by pressing Shift+Spacebar. |
| 296 |
KEYCODE_LEFT_BRACKET = $00000047; // '[' key. |
| 297 |
KEYCODE_M = 41; |
| 298 |
KEYCODE_MANNER_MODE = $000000cd; // Manner Mode key. Toggles silent or vibrate mode on and off to make the device behave more politely in certain settings such as on a crowded train. On some devices, the key may only operate when long-pressed. |
| 299 |
KEYCODE_MEDIA_CLOSE = $00000080; // Close media key. May be used to close a CD tray, for example. |
| 300 |
KEYCODE_MEDIA_EJECT = $00000081; // Eject media key. May be used to eject a CD tray, for example. |
| 301 |
KEYCODE_MEDIA_FAST_FORWARD = $0000005a; // Fast Forward media key. |
| 302 |
KEYCODE_MEDIA_NEXT = $00000057; // Play Next media key. |
| 303 |
KEYCODE_MEDIA_PAUSE = $0000007f; // Pause media key. |
| 304 |
KEYCODE_MEDIA_PLAY = $0000007e; // Play media key. |
| 305 |
KEYCODE_MEDIA_PLAY_PAUSE = $00000055; // Play/Pause media key. |
| 306 |
KEYCODE_MEDIA_PREVIOUS = $00000058; // Play Previous media key. |
| 307 |
KEYCODE_MEDIA_RECORD = $00000082; // Record media key. |
| 308 |
KEYCODE_MEDIA_REWIND = $00000059; // Rewind media key. |
| 309 |
KEYCODE_MEDIA_STOP = $00000056; // Stop media key. |
| 310 |
KEYCODE_MENU = $00000052; // Menu key. |
| 311 |
KEYCODE_META_LEFT = $00000075; // Left Meta modifier key. |
| 312 |
KEYCODE_META_RIGHT = $00000076; // Right Meta modifier key. |
| 313 |
KEYCODE_MINUS = $00000045; // '-' |
| 314 |
KEYCODE_MOVE_END = $0000007b; // End Movement key. Used for scrolling or moving the cursor around to the end of a line or to the bottom of a list. |
| 315 |
KEYCODE_MOVE_HOME = $0000007a; // Home Movement key. Used for scrolling or moving the cursor around to the start of a line or to the top of a list. |
| 316 |
KEYCODE_MUSIC = $000000d1; // Music special function key. Used to launch a music player application. |
| 317 |
KEYCODE_MUTE = $0000005b; //Mute key. Mutes the microphone, unlike KEYCODE_VOLUME_MUTE |
| 318 |
KEYCODE_N = 42; |
| 319 |
KEYCODE_NOTIFICATION = $00000053; |
| 320 |
KEYCODE_NUM = $0000004e; // Number modifier key. Used to enter numeric symbols. This key is not Num Lock; it is more like KEYCODE_ALT_LEFT and is interpreted as an ALT key by MetaKeyKeyListener. |
| 321 |
KEYCODE_NUMPAD_0 = $00000090; |
| 322 |
KEYCODE_NUMPAD_1 = $00000091; |
| 323 |
KEYCODE_NUMPAD_2 = $00000092; |
| 324 |
KEYCODE_NUMPAD_3 = $00000093; |
| 325 |
KEYCODE_NUMPAD_4 = $00000094; |
| 326 |
KEYCODE_NUMPAD_5 = $00000095; |
| 327 |
KEYCODE_NUMPAD_6 = $00000096; |
| 328 |
KEYCODE_NUMPAD_7 = $00000097; |
| 329 |
KEYCODE_NUMPAD_8 = $00000098; |
| 330 |
KEYCODE_NUMPAD_9 = $00000099; |
| 331 |
KEYCODE_NUMPAD_ADD = $0000009d; |
| 332 |
KEYCODE_NUMPAD_COMMA = $0000009f; |
| 333 |
KEYCODE_NUMPAD_DIVIDE = $0000009a; |
| 334 |
KEYCODE_NUMPAD_DOT = $0000009e; |
| 335 |
KEYCODE_NUMPAD_ENTER = $000000a0; |
| 336 |
KEYCODE_NUMPAD_EQUALS = $000000a1; |
| 337 |
KEYCODE_NUMPAD_LEFT_PAREN = $000000a2; |
| 338 |
KEYCODE_NUMPAD_MULTIPLY = $0000009b; |
| 339 |
KEYCODE_NUMPAD_RIGHT_PAREN = $000000a3; |
| 340 |
KEYCODE_NUMPAD_SUBTRACT = $0000009c; |
| 341 |
KEYCODE_NUM_LOCK = $0000008f; |
| 342 |
KEYCODE_O = 43; |
| 343 |
KEYCODE_P = 44; |
| 344 |
KEYCODE_PAGE_DOWN = $0000005d; |
| 345 |
KEYCODE_PAGE_UP = $0000005c; |
| 346 |
KEYCODE_PERIOD = $00000038; |
| 347 |
KEYCODE_PICTSYMBOLS = $0000005e; |
| 348 |
KEYCODE_PLUS = $00000051; // '+' key |
| 349 |
KEYCODE_POUND = $00000012; // '#' key. |
| 350 |
KEYCODE_POWER = $0000001a; |
| 351 |
KEYCODE_PROG_BLUE = $000000ba; |
| 352 |
KEYCODE_PROG_GREEN = $000000b8; |
| 353 |
KEYCODE_PROG_RED = $000000b7; |
| 354 |
KEYCODE_PROG_YELLOW = $000000b9; |
| 355 |
KEYCODE_Q = 45; |
| 356 |
KEYCODE_R = 46; |
| 357 |
KEYCODE_RIGHT_BRACKET = $00000048; |
| 358 |
KEYCODE_S = 47; |
| 359 |
KEYCODE_SCROLL_LOCK = $00000074; |
| 360 |
KEYCODE_SEARCH = $00000054; |
| 361 |
KEYCODE_SEMICOLON = $0000004a; |
| 362 |
KEYCODE_SETTINGS = $000000b0; |
| 363 |
KEYCODE_SHIFT_LEFT = 59; |
| 364 |
KEYCODE_SHIFT_RIGHT = 60; |
| 365 |
KEYCODE_SLASH = $0000004c; // '/' key. |
| 366 |
KEYCODE_SOFT_LEFT = $00000001; |
| 367 |
KEYCODE_SOFT_RIGHT = $00000002; |
| 368 |
KEYCODE_SPACE = $0000003e; |
| 369 |
KEYCODE_STAR = $00000011; |
| 370 |
KEYCODE_STB_INPUT = $000000b4; |
| 371 |
KEYCODE_STB_POWER = $000000b3; |
| 372 |
KEYCODE_SWITCH_CHARSET = $0000005f; |
| 373 |
KEYCODE_SYM = $0000003f; // Symbol modifier key. Used to enter alternate symbols. |
| 374 |
KEYCODE_SYSRQ = $00000078; // System Request / Print Screen key. |
| 375 |
KEYCODE_T = 48; |
| 376 |
KEYCODE_TAB = $0000003d; |
| 377 |
KEYCODE_TV = $000000aa; |
| 378 |
KEYCODE_TV_INPUT = $000000b2; |
| 379 |
KEYCODE_TV_POWER = $000000b1; |
| 380 |
KEYCODE_U = 49; |
| 381 |
KEYCODE_UNKNOWN = 0; |
| 382 |
KEYCODE_V = 50; |
| 383 |
KEYCODE_VOLUME_DOWN = $00000019; |
| 384 |
KEYCODE_VOLUME_MUTE = $000000a4; |
| 385 |
KEYCODE_VOLUME_UP = $00000018; |
| 386 |
KEYCODE_W = 51; |
| 387 |
KEYCODE_WINDOW = $000000ab; // Window key. On TV remotes, toggles picture-in-picture mode or other windowing functions. |
| 388 |
KEYCODE_X = 52; |
| 389 |
KEYCODE_Y = 53; |
| 390 |
KEYCODE_Z = 54; |
| 391 |
KEYCODE_ZOOM_IN = $000000a8; |
| 392 |
KEYCODE_ZOOM_OUT = $000000a9; |
| 393 |
MAX_KEYCODE = $00000054; // deprecated! |
| 394 |
META_ALT_LEFT_ON = $00000010; |
| 395 |
META_ALT_MASK = $00000032; |
| 396 |
META_ALT_ON = $00000002; |
| 397 |
META_ALT_RIGHT_ON = $00000020; |
| 398 |
META_CAPS_LOCK_ON = $00100000; |
| 399 |
META_CTRL_LEFT_ON = $00002000; |
| 400 |
META_CTRL_MASK = $00007000; |
| 401 |
META_CTRL_ON = $00001000; |
| 402 |
META_CTRL_RIGHT_ON = $00004000; |
| 403 |
META_FUNCTION_ON = $00000008; |
| 404 |
META_META_LEFT_ON = $00020000; |
| 405 |
META_META_MASK = $00070000; |
| 406 |
META_META_ON = $00010000; |
| 407 |
META_META_RIGHT_ON = $00040000; |
| 408 |
META_NUM_LOCK_ON = $00200000; |
| 409 |
META_SCROLL_LOCK_ON = $00400000; |
| 410 |
META_SHIFT_LEFT_ON = $00000040; |
| 411 |
META_SHIFT_MASK = $000000c1; |
| 412 |
META_SHIFT_ON = $00000001; |
| 413 |
META_SHIFT_RIGHT_ON = $00000080; |
| 414 |
META_SYM_ON = 4; |
| 415 |
|
| 416 |
implementation |
| 417 |
|
| 418 |
end. |