keycodes.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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. * @addtogroup Input
  18. * @{
  19. */
  20. /**
  21. * @file keycodes.h
  22. */
  23. #ifndef _ANDROID_KEYCODES_H
  24. #define _ANDROID_KEYCODES_H
  25. /******************************************************************
  26. *
  27. * IMPORTANT NOTICE:
  28. *
  29. * This file is part of Android's set of stable system headers
  30. * exposed by the Android NDK (Native Development Kit).
  31. *
  32. * Third-party source AND binary code relies on the definitions
  33. * here to be FROZEN ON ALL UPCOMING PLATFORM RELEASES.
  34. *
  35. * - DO NOT MODIFY ENUMS (EXCEPT IF YOU ADD NEW 32-BIT VALUES)
  36. * - DO NOT MODIFY CONSTANTS OR FUNCTIONAL MACROS
  37. * - DO NOT CHANGE THE SIGNATURE OF FUNCTIONS IN ANY WAY
  38. * - DO NOT CHANGE THE LAYOUT OR SIZE OF STRUCTURES
  39. */
  40. #include <sys/types.h>
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. /**
  45. * Key codes.
  46. */
  47. enum {
  48. /** Unknown key code. */
  49. AKEYCODE_UNKNOWN = 0,
  50. /** Soft Left key.
  51. * Usually situated below the display on phones and used as a multi-function
  52. * feature key for selecting a software defined function shown on the bottom left
  53. * of the display. */
  54. AKEYCODE_SOFT_LEFT = 1,
  55. /** Soft Right key.
  56. * Usually situated below the display on phones and used as a multi-function
  57. * feature key for selecting a software defined function shown on the bottom right
  58. * of the display. */
  59. AKEYCODE_SOFT_RIGHT = 2,
  60. /** Home key.
  61. * This key is handled by the framework and is never delivered to applications. */
  62. AKEYCODE_HOME = 3,
  63. /** Back key. */
  64. AKEYCODE_BACK = 4,
  65. /** Call key. */
  66. AKEYCODE_CALL = 5,
  67. /** End Call key. */
  68. AKEYCODE_ENDCALL = 6,
  69. /** '0' key. */
  70. AKEYCODE_0 = 7,
  71. /** '1' key. */
  72. AKEYCODE_1 = 8,
  73. /** '2' key. */
  74. AKEYCODE_2 = 9,
  75. /** '3' key. */
  76. AKEYCODE_3 = 10,
  77. /** '4' key. */
  78. AKEYCODE_4 = 11,
  79. /** '5' key. */
  80. AKEYCODE_5 = 12,
  81. /** '6' key. */
  82. AKEYCODE_6 = 13,
  83. /** '7' key. */
  84. AKEYCODE_7 = 14,
  85. /** '8' key. */
  86. AKEYCODE_8 = 15,
  87. /** '9' key. */
  88. AKEYCODE_9 = 16,
  89. /** '*' key. */
  90. AKEYCODE_STAR = 17,
  91. /** '#' key. */
  92. AKEYCODE_POUND = 18,
  93. /** Directional Pad Up key.
  94. * May also be synthesized from trackball motions. */
  95. AKEYCODE_DPAD_UP = 19,
  96. /** Directional Pad Down key.
  97. * May also be synthesized from trackball motions. */
  98. AKEYCODE_DPAD_DOWN = 20,
  99. /** Directional Pad Left key.
  100. * May also be synthesized from trackball motions. */
  101. AKEYCODE_DPAD_LEFT = 21,
  102. /** Directional Pad Right key.
  103. * May also be synthesized from trackball motions. */
  104. AKEYCODE_DPAD_RIGHT = 22,
  105. /** Directional Pad Center key.
  106. * May also be synthesized from trackball motions. */
  107. AKEYCODE_DPAD_CENTER = 23,
  108. /** Volume Up key.
  109. * Adjusts the speaker volume up. */
  110. AKEYCODE_VOLUME_UP = 24,
  111. /** Volume Down key.
  112. * Adjusts the speaker volume down. */
  113. AKEYCODE_VOLUME_DOWN = 25,
  114. /** Power key. */
  115. AKEYCODE_POWER = 26,
  116. /** Camera key.
  117. * Used to launch a camera application or take pictures. */
  118. AKEYCODE_CAMERA = 27,
  119. /** Clear key. */
  120. AKEYCODE_CLEAR = 28,
  121. /** 'A' key. */
  122. AKEYCODE_A = 29,
  123. /** 'B' key. */
  124. AKEYCODE_B = 30,
  125. /** 'C' key. */
  126. AKEYCODE_C = 31,
  127. /** 'D' key. */
  128. AKEYCODE_D = 32,
  129. /** 'E' key. */
  130. AKEYCODE_E = 33,
  131. /** 'F' key. */
  132. AKEYCODE_F = 34,
  133. /** 'G' key. */
  134. AKEYCODE_G = 35,
  135. /** 'H' key. */
  136. AKEYCODE_H = 36,
  137. /** 'I' key. */
  138. AKEYCODE_I = 37,
  139. /** 'J' key. */
  140. AKEYCODE_J = 38,
  141. /** 'K' key. */
  142. AKEYCODE_K = 39,
  143. /** 'L' key. */
  144. AKEYCODE_L = 40,
  145. /** 'M' key. */
  146. AKEYCODE_M = 41,
  147. /** 'N' key. */
  148. AKEYCODE_N = 42,
  149. /** 'O' key. */
  150. AKEYCODE_O = 43,
  151. /** 'P' key. */
  152. AKEYCODE_P = 44,
  153. /** 'Q' key. */
  154. AKEYCODE_Q = 45,
  155. /** 'R' key. */
  156. AKEYCODE_R = 46,
  157. /** 'S' key. */
  158. AKEYCODE_S = 47,
  159. /** 'T' key. */
  160. AKEYCODE_T = 48,
  161. /** 'U' key. */
  162. AKEYCODE_U = 49,
  163. /** 'V' key. */
  164. AKEYCODE_V = 50,
  165. /** 'W' key. */
  166. AKEYCODE_W = 51,
  167. /** 'X' key. */
  168. AKEYCODE_X = 52,
  169. /** 'Y' key. */
  170. AKEYCODE_Y = 53,
  171. /** 'Z' key. */
  172. AKEYCODE_Z = 54,
  173. /** ',' key. */
  174. AKEYCODE_COMMA = 55,
  175. /** '.' key. */
  176. AKEYCODE_PERIOD = 56,
  177. /** Left Alt modifier key. */
  178. AKEYCODE_ALT_LEFT = 57,
  179. /** Right Alt modifier key. */
  180. AKEYCODE_ALT_RIGHT = 58,
  181. /** Left Shift modifier key. */
  182. AKEYCODE_SHIFT_LEFT = 59,
  183. /** Right Shift modifier key. */
  184. AKEYCODE_SHIFT_RIGHT = 60,
  185. /** Tab key. */
  186. AKEYCODE_TAB = 61,
  187. /** Space key. */
  188. AKEYCODE_SPACE = 62,
  189. /** Symbol modifier key.
  190. * Used to enter alternate symbols. */
  191. AKEYCODE_SYM = 63,
  192. /** Explorer special function key.
  193. * Used to launch a browser application. */
  194. AKEYCODE_EXPLORER = 64,
  195. /** Envelope special function key.
  196. * Used to launch a mail application. */
  197. AKEYCODE_ENVELOPE = 65,
  198. /** Enter key. */
  199. AKEYCODE_ENTER = 66,
  200. /** Backspace key.
  201. * Deletes characters before the insertion point, unlike {@link AKEYCODE_FORWARD_DEL}. */
  202. AKEYCODE_DEL = 67,
  203. /** '`' (backtick) key. */
  204. AKEYCODE_GRAVE = 68,
  205. /** '-'. */
  206. AKEYCODE_MINUS = 69,
  207. /** '=' key. */
  208. AKEYCODE_EQUALS = 70,
  209. /** '[' key. */
  210. AKEYCODE_LEFT_BRACKET = 71,
  211. /** ']' key. */
  212. AKEYCODE_RIGHT_BRACKET = 72,
  213. /** '\' key. */
  214. AKEYCODE_BACKSLASH = 73,
  215. /** ';' key. */
  216. AKEYCODE_SEMICOLON = 74,
  217. /** ''' (apostrophe) key. */
  218. AKEYCODE_APOSTROPHE = 75,
  219. /** '/' key. */
  220. AKEYCODE_SLASH = 76,
  221. /** '@' key. */
  222. AKEYCODE_AT = 77,
  223. /** Number modifier key.
  224. * Used to enter numeric symbols.
  225. * This key is not {@link AKEYCODE_NUM_LOCK}; it is more like {@link AKEYCODE_ALT_LEFT}. */
  226. AKEYCODE_NUM = 78,
  227. /** Headset Hook key.
  228. * Used to hang up calls and stop media. */
  229. AKEYCODE_HEADSETHOOK = 79,
  230. /** Camera Focus key.
  231. * Used to focus the camera. */
  232. AKEYCODE_FOCUS = 80,
  233. /** '+' key. */
  234. AKEYCODE_PLUS = 81,
  235. /** Menu key. */
  236. AKEYCODE_MENU = 82,
  237. /** Notification key. */
  238. AKEYCODE_NOTIFICATION = 83,
  239. /** Search key. */
  240. AKEYCODE_SEARCH = 84,
  241. /** Play/Pause media key. */
  242. AKEYCODE_MEDIA_PLAY_PAUSE= 85,
  243. /** Stop media key. */
  244. AKEYCODE_MEDIA_STOP = 86,
  245. /** Play Next media key. */
  246. AKEYCODE_MEDIA_NEXT = 87,
  247. /** Play Previous media key. */
  248. AKEYCODE_MEDIA_PREVIOUS = 88,
  249. /** Rewind media key. */
  250. AKEYCODE_MEDIA_REWIND = 89,
  251. /** Fast Forward media key. */
  252. AKEYCODE_MEDIA_FAST_FORWARD = 90,
  253. /** Mute key.
  254. * Mutes the microphone, unlike {@link AKEYCODE_VOLUME_MUTE}. */
  255. AKEYCODE_MUTE = 91,
  256. /** Page Up key. */
  257. AKEYCODE_PAGE_UP = 92,
  258. /** Page Down key. */
  259. AKEYCODE_PAGE_DOWN = 93,
  260. /** Picture Symbols modifier key.
  261. * Used to switch symbol sets (Emoji, Kao-moji). */
  262. AKEYCODE_PICTSYMBOLS = 94,
  263. /** Switch Charset modifier key.
  264. * Used to switch character sets (Kanji, Katakana). */
  265. AKEYCODE_SWITCH_CHARSET = 95,
  266. /** A Button key.
  267. * On a game controller, the A button should be either the button labeled A
  268. * or the first button on the bottom row of controller buttons. */
  269. AKEYCODE_BUTTON_A = 96,
  270. /** B Button key.
  271. * On a game controller, the B button should be either the button labeled B
  272. * or the second button on the bottom row of controller buttons. */
  273. AKEYCODE_BUTTON_B = 97,
  274. /** C Button key.
  275. * On a game controller, the C button should be either the button labeled C
  276. * or the third button on the bottom row of controller buttons. */
  277. AKEYCODE_BUTTON_C = 98,
  278. /** X Button key.
  279. * On a game controller, the X button should be either the button labeled X
  280. * or the first button on the upper row of controller buttons. */
  281. AKEYCODE_BUTTON_X = 99,
  282. /** Y Button key.
  283. * On a game controller, the Y button should be either the button labeled Y
  284. * or the second button on the upper row of controller buttons. */
  285. AKEYCODE_BUTTON_Y = 100,
  286. /** Z Button key.
  287. * On a game controller, the Z button should be either the button labeled Z
  288. * or the third button on the upper row of controller buttons. */
  289. AKEYCODE_BUTTON_Z = 101,
  290. /** L1 Button key.
  291. * On a game controller, the L1 button should be either the button labeled L1 (or L)
  292. * or the top left trigger button. */
  293. AKEYCODE_BUTTON_L1 = 102,
  294. /** R1 Button key.
  295. * On a game controller, the R1 button should be either the button labeled R1 (or R)
  296. * or the top right trigger button. */
  297. AKEYCODE_BUTTON_R1 = 103,
  298. /** L2 Button key.
  299. * On a game controller, the L2 button should be either the button labeled L2
  300. * or the bottom left trigger button. */
  301. AKEYCODE_BUTTON_L2 = 104,
  302. /** R2 Button key.
  303. * On a game controller, the R2 button should be either the button labeled R2
  304. * or the bottom right trigger button. */
  305. AKEYCODE_BUTTON_R2 = 105,
  306. /** Left Thumb Button key.
  307. * On a game controller, the left thumb button indicates that the left (or only)
  308. * joystick is pressed. */
  309. AKEYCODE_BUTTON_THUMBL = 106,
  310. /** Right Thumb Button key.
  311. * On a game controller, the right thumb button indicates that the right
  312. * joystick is pressed. */
  313. AKEYCODE_BUTTON_THUMBR = 107,
  314. /** Start Button key.
  315. * On a game controller, the button labeled Start. */
  316. AKEYCODE_BUTTON_START = 108,
  317. /** Select Button key.
  318. * On a game controller, the button labeled Select. */
  319. AKEYCODE_BUTTON_SELECT = 109,
  320. /** Mode Button key.
  321. * On a game controller, the button labeled Mode. */
  322. AKEYCODE_BUTTON_MODE = 110,
  323. /** Escape key. */
  324. AKEYCODE_ESCAPE = 111,
  325. /** Forward Delete key.
  326. * Deletes characters ahead of the insertion point, unlike {@link AKEYCODE_DEL}. */
  327. AKEYCODE_FORWARD_DEL = 112,
  328. /** Left Control modifier key. */
  329. AKEYCODE_CTRL_LEFT = 113,
  330. /** Right Control modifier key. */
  331. AKEYCODE_CTRL_RIGHT = 114,
  332. /** Caps Lock key. */
  333. AKEYCODE_CAPS_LOCK = 115,
  334. /** Scroll Lock key. */
  335. AKEYCODE_SCROLL_LOCK = 116,
  336. /** Left Meta modifier key. */
  337. AKEYCODE_META_LEFT = 117,
  338. /** Right Meta modifier key. */
  339. AKEYCODE_META_RIGHT = 118,
  340. /** Function modifier key. */
  341. AKEYCODE_FUNCTION = 119,
  342. /** System Request / Print Screen key. */
  343. AKEYCODE_SYSRQ = 120,
  344. /** Break / Pause key. */
  345. AKEYCODE_BREAK = 121,
  346. /** Home Movement key.
  347. * Used for scrolling or moving the cursor around to the start of a line
  348. * or to the top of a list. */
  349. AKEYCODE_MOVE_HOME = 122,
  350. /** End Movement key.
  351. * Used for scrolling or moving the cursor around to the end of a line
  352. * or to the bottom of a list. */
  353. AKEYCODE_MOVE_END = 123,
  354. /** Insert key.
  355. * Toggles insert / overwrite edit mode. */
  356. AKEYCODE_INSERT = 124,
  357. /** Forward key.
  358. * Navigates forward in the history stack. Complement of {@link AKEYCODE_BACK}. */
  359. AKEYCODE_FORWARD = 125,
  360. /** Play media key. */
  361. AKEYCODE_MEDIA_PLAY = 126,
  362. /** Pause media key. */
  363. AKEYCODE_MEDIA_PAUSE = 127,
  364. /** Close media key.
  365. * May be used to close a CD tray, for example. */
  366. AKEYCODE_MEDIA_CLOSE = 128,
  367. /** Eject media key.
  368. * May be used to eject a CD tray, for example. */
  369. AKEYCODE_MEDIA_EJECT = 129,
  370. /** Record media key. */
  371. AKEYCODE_MEDIA_RECORD = 130,
  372. /** F1 key. */
  373. AKEYCODE_F1 = 131,
  374. /** F2 key. */
  375. AKEYCODE_F2 = 132,
  376. /** F3 key. */
  377. AKEYCODE_F3 = 133,
  378. /** F4 key. */
  379. AKEYCODE_F4 = 134,
  380. /** F5 key. */
  381. AKEYCODE_F5 = 135,
  382. /** F6 key. */
  383. AKEYCODE_F6 = 136,
  384. /** F7 key. */
  385. AKEYCODE_F7 = 137,
  386. /** F8 key. */
  387. AKEYCODE_F8 = 138,
  388. /** F9 key. */
  389. AKEYCODE_F9 = 139,
  390. /** F10 key. */
  391. AKEYCODE_F10 = 140,
  392. /** F11 key. */
  393. AKEYCODE_F11 = 141,
  394. /** F12 key. */
  395. AKEYCODE_F12 = 142,
  396. /** Num Lock key.
  397. * This is the Num Lock key; it is different from {@link AKEYCODE_NUM}.
  398. * This key alters the behavior of other keys on the numeric keypad. */
  399. AKEYCODE_NUM_LOCK = 143,
  400. /** Numeric keypad '0' key. */
  401. AKEYCODE_NUMPAD_0 = 144,
  402. /** Numeric keypad '1' key. */
  403. AKEYCODE_NUMPAD_1 = 145,
  404. /** Numeric keypad '2' key. */
  405. AKEYCODE_NUMPAD_2 = 146,
  406. /** Numeric keypad '3' key. */
  407. AKEYCODE_NUMPAD_3 = 147,
  408. /** Numeric keypad '4' key. */
  409. AKEYCODE_NUMPAD_4 = 148,
  410. /** Numeric keypad '5' key. */
  411. AKEYCODE_NUMPAD_5 = 149,
  412. /** Numeric keypad '6' key. */
  413. AKEYCODE_NUMPAD_6 = 150,
  414. /** Numeric keypad '7' key. */
  415. AKEYCODE_NUMPAD_7 = 151,
  416. /** Numeric keypad '8' key. */
  417. AKEYCODE_NUMPAD_8 = 152,
  418. /** Numeric keypad '9' key. */
  419. AKEYCODE_NUMPAD_9 = 153,
  420. /** Numeric keypad '/' key (for division). */
  421. AKEYCODE_NUMPAD_DIVIDE = 154,
  422. /** Numeric keypad '*' key (for multiplication). */
  423. AKEYCODE_NUMPAD_MULTIPLY = 155,
  424. /** Numeric keypad '-' key (for subtraction). */
  425. AKEYCODE_NUMPAD_SUBTRACT = 156,
  426. /** Numeric keypad '+' key (for addition). */
  427. AKEYCODE_NUMPAD_ADD = 157,
  428. /** Numeric keypad '.' key (for decimals or digit grouping). */
  429. AKEYCODE_NUMPAD_DOT = 158,
  430. /** Numeric keypad ',' key (for decimals or digit grouping). */
  431. AKEYCODE_NUMPAD_COMMA = 159,
  432. /** Numeric keypad Enter key. */
  433. AKEYCODE_NUMPAD_ENTER = 160,
  434. /** Numeric keypad '=' key. */
  435. AKEYCODE_NUMPAD_EQUALS = 161,
  436. /** Numeric keypad '(' key. */
  437. AKEYCODE_NUMPAD_LEFT_PAREN = 162,
  438. /** Numeric keypad ')' key. */
  439. AKEYCODE_NUMPAD_RIGHT_PAREN = 163,
  440. /** Volume Mute key.
  441. * Mutes the speaker, unlike {@link AKEYCODE_MUTE}.
  442. * This key should normally be implemented as a toggle such that the first press
  443. * mutes the speaker and the second press restores the original volume. */
  444. AKEYCODE_VOLUME_MUTE = 164,
  445. /** Info key.
  446. * Common on TV remotes to show additional information related to what is
  447. * currently being viewed. */
  448. AKEYCODE_INFO = 165,
  449. /** Channel up key.
  450. * On TV remotes, increments the television channel. */
  451. AKEYCODE_CHANNEL_UP = 166,
  452. /** Channel down key.
  453. * On TV remotes, decrements the television channel. */
  454. AKEYCODE_CHANNEL_DOWN = 167,
  455. /** Zoom in key. */
  456. AKEYCODE_ZOOM_IN = 168,
  457. /** Zoom out key. */
  458. AKEYCODE_ZOOM_OUT = 169,
  459. /** TV key.
  460. * On TV remotes, switches to viewing live TV. */
  461. AKEYCODE_TV = 170,
  462. /** Window key.
  463. * On TV remotes, toggles picture-in-picture mode or other windowing functions. */
  464. AKEYCODE_WINDOW = 171,
  465. /** Guide key.
  466. * On TV remotes, shows a programming guide. */
  467. AKEYCODE_GUIDE = 172,
  468. /** DVR key.
  469. * On some TV remotes, switches to a DVR mode for recorded shows. */
  470. AKEYCODE_DVR = 173,
  471. /** Bookmark key.
  472. * On some TV remotes, bookmarks content or web pages. */
  473. AKEYCODE_BOOKMARK = 174,
  474. /** Toggle captions key.
  475. * Switches the mode for closed-captioning text, for example during television shows. */
  476. AKEYCODE_CAPTIONS = 175,
  477. /** Settings key.
  478. * Starts the system settings activity. */
  479. AKEYCODE_SETTINGS = 176,
  480. /** TV power key.
  481. * On TV remotes, toggles the power on a television screen. */
  482. AKEYCODE_TV_POWER = 177,
  483. /** TV input key.
  484. * On TV remotes, switches the input on a television screen. */
  485. AKEYCODE_TV_INPUT = 178,
  486. /** Set-top-box power key.
  487. * On TV remotes, toggles the power on an external Set-top-box. */
  488. AKEYCODE_STB_POWER = 179,
  489. /** Set-top-box input key.
  490. * On TV remotes, switches the input mode on an external Set-top-box. */
  491. AKEYCODE_STB_INPUT = 180,
  492. /** A/V Receiver power key.
  493. * On TV remotes, toggles the power on an external A/V Receiver. */
  494. AKEYCODE_AVR_POWER = 181,
  495. /** A/V Receiver input key.
  496. * On TV remotes, switches the input mode on an external A/V Receiver. */
  497. AKEYCODE_AVR_INPUT = 182,
  498. /** Red "programmable" key.
  499. * On TV remotes, acts as a contextual/programmable key. */
  500. AKEYCODE_PROG_RED = 183,
  501. /** Green "programmable" key.
  502. * On TV remotes, actsas a contextual/programmable key. */
  503. AKEYCODE_PROG_GREEN = 184,
  504. /** Yellow "programmable" key.
  505. * On TV remotes, acts as a contextual/programmable key. */
  506. AKEYCODE_PROG_YELLOW = 185,
  507. /** Blue "programmable" key.
  508. * On TV remotes, acts as a contextual/programmable key. */
  509. AKEYCODE_PROG_BLUE = 186,
  510. /** App switch key.
  511. * Should bring up the application switcher dialog. */
  512. AKEYCODE_APP_SWITCH = 187,
  513. /** Generic Game Pad Button #1.*/
  514. AKEYCODE_BUTTON_1 = 188,
  515. /** Generic Game Pad Button #2.*/
  516. AKEYCODE_BUTTON_2 = 189,
  517. /** Generic Game Pad Button #3.*/
  518. AKEYCODE_BUTTON_3 = 190,
  519. /** Generic Game Pad Button #4.*/
  520. AKEYCODE_BUTTON_4 = 191,
  521. /** Generic Game Pad Button #5.*/
  522. AKEYCODE_BUTTON_5 = 192,
  523. /** Generic Game Pad Button #6.*/
  524. AKEYCODE_BUTTON_6 = 193,
  525. /** Generic Game Pad Button #7.*/
  526. AKEYCODE_BUTTON_7 = 194,
  527. /** Generic Game Pad Button #8.*/
  528. AKEYCODE_BUTTON_8 = 195,
  529. /** Generic Game Pad Button #9.*/
  530. AKEYCODE_BUTTON_9 = 196,
  531. /** Generic Game Pad Button #10.*/
  532. AKEYCODE_BUTTON_10 = 197,
  533. /** Generic Game Pad Button #11.*/
  534. AKEYCODE_BUTTON_11 = 198,
  535. /** Generic Game Pad Button #12.*/
  536. AKEYCODE_BUTTON_12 = 199,
  537. /** Generic Game Pad Button #13.*/
  538. AKEYCODE_BUTTON_13 = 200,
  539. /** Generic Game Pad Button #14.*/
  540. AKEYCODE_BUTTON_14 = 201,
  541. /** Generic Game Pad Button #15.*/
  542. AKEYCODE_BUTTON_15 = 202,
  543. /** Generic Game Pad Button #16.*/
  544. AKEYCODE_BUTTON_16 = 203,
  545. /** Language Switch key.
  546. * Toggles the current input language such as switching between English and Japanese on
  547. * a QWERTY keyboard. On some devices, the same function may be performed by
  548. * pressing Shift+Spacebar. */
  549. AKEYCODE_LANGUAGE_SWITCH = 204,
  550. /** Manner Mode key.
  551. * Toggles silent or vibrate mode on and off to make the device behave more politely
  552. * in certain settings such as on a crowded train. On some devices, the key may only
  553. * operate when long-pressed. */
  554. AKEYCODE_MANNER_MODE = 205,
  555. /** 3D Mode key.
  556. * Toggles the display between 2D and 3D mode. */
  557. AKEYCODE_3D_MODE = 206,
  558. /** Contacts special function key.
  559. * Used to launch an address book application. */
  560. AKEYCODE_CONTACTS = 207,
  561. /** Calendar special function key.
  562. * Used to launch a calendar application. */
  563. AKEYCODE_CALENDAR = 208,
  564. /** Music special function key.
  565. * Used to launch a music player application. */
  566. AKEYCODE_MUSIC = 209,
  567. /** Calculator special function key.
  568. * Used to launch a calculator application. */
  569. AKEYCODE_CALCULATOR = 210,
  570. /** Japanese full-width / half-width key. */
  571. AKEYCODE_ZENKAKU_HANKAKU = 211,
  572. /** Japanese alphanumeric key. */
  573. AKEYCODE_EISU = 212,
  574. /** Japanese non-conversion key. */
  575. AKEYCODE_MUHENKAN = 213,
  576. /** Japanese conversion key. */
  577. AKEYCODE_HENKAN = 214,
  578. /** Japanese katakana / hiragana key. */
  579. AKEYCODE_KATAKANA_HIRAGANA = 215,
  580. /** Japanese Yen key. */
  581. AKEYCODE_YEN = 216,
  582. /** Japanese Ro key. */
  583. AKEYCODE_RO = 217,
  584. /** Japanese kana key. */
  585. AKEYCODE_KANA = 218,
  586. /** Assist key.
  587. * Launches the global assist activity. Not delivered to applications. */
  588. AKEYCODE_ASSIST = 219,
  589. /** Brightness Down key.
  590. * Adjusts the screen brightness down. */
  591. AKEYCODE_BRIGHTNESS_DOWN = 220,
  592. /** Brightness Up key.
  593. * Adjusts the screen brightness up. */
  594. AKEYCODE_BRIGHTNESS_UP = 221,
  595. /** Audio Track key.
  596. * Switches the audio tracks. */
  597. AKEYCODE_MEDIA_AUDIO_TRACK = 222,
  598. /** Sleep key.
  599. * Puts the device to sleep. Behaves somewhat like {@link AKEYCODE_POWER} but it
  600. * has no effect if the device is already asleep. */
  601. AKEYCODE_SLEEP = 223,
  602. /** Wakeup key.
  603. * Wakes up the device. Behaves somewhat like {@link AKEYCODE_POWER} but it
  604. * has no effect if the device is already awake. */
  605. AKEYCODE_WAKEUP = 224,
  606. /** Pairing key.
  607. * Initiates peripheral pairing mode. Useful for pairing remote control
  608. * devices or game controllers, especially if no other input mode is
  609. * available. */
  610. AKEYCODE_PAIRING = 225,
  611. /** Media Top Menu key.
  612. * Goes to the top of media menu. */
  613. AKEYCODE_MEDIA_TOP_MENU = 226,
  614. /** '11' key. */
  615. AKEYCODE_11 = 227,
  616. /** '12' key. */
  617. AKEYCODE_12 = 228,
  618. /** Last Channel key.
  619. * Goes to the last viewed channel. */
  620. AKEYCODE_LAST_CHANNEL = 229,
  621. /** TV data service key.
  622. * Displays data services like weather, sports. */
  623. AKEYCODE_TV_DATA_SERVICE = 230,
  624. /** Voice Assist key.
  625. * Launches the global voice assist activity. Not delivered to applications. */
  626. AKEYCODE_VOICE_ASSIST = 231,
  627. /** Radio key.
  628. * Toggles TV service / Radio service. */
  629. AKEYCODE_TV_RADIO_SERVICE = 232,
  630. /** Teletext key.
  631. * Displays Teletext service. */
  632. AKEYCODE_TV_TELETEXT = 233,
  633. /** Number entry key.
  634. * Initiates to enter multi-digit channel nubmber when each digit key is assigned
  635. * for selecting separate channel. Corresponds to Number Entry Mode (0x1D) of CEC
  636. * User Control Code. */
  637. AKEYCODE_TV_NUMBER_ENTRY = 234,
  638. /** Analog Terrestrial key.
  639. * Switches to analog terrestrial broadcast service. */
  640. AKEYCODE_TV_TERRESTRIAL_ANALOG = 235,
  641. /** Digital Terrestrial key.
  642. * Switches to digital terrestrial broadcast service. */
  643. AKEYCODE_TV_TERRESTRIAL_DIGITAL = 236,
  644. /** Satellite key.
  645. * Switches to digital satellite broadcast service. */
  646. AKEYCODE_TV_SATELLITE = 237,
  647. /** BS key.
  648. * Switches to BS digital satellite broadcasting service available in Japan. */
  649. AKEYCODE_TV_SATELLITE_BS = 238,
  650. /** CS key.
  651. * Switches to CS digital satellite broadcasting service available in Japan. */
  652. AKEYCODE_TV_SATELLITE_CS = 239,
  653. /** BS/CS key.
  654. * Toggles between BS and CS digital satellite services. */
  655. AKEYCODE_TV_SATELLITE_SERVICE = 240,
  656. /** Toggle Network key.
  657. * Toggles selecting broacast services. */
  658. AKEYCODE_TV_NETWORK = 241,
  659. /** Antenna/Cable key.
  660. * Toggles broadcast input source between antenna and cable. */
  661. AKEYCODE_TV_ANTENNA_CABLE = 242,
  662. /** HDMI #1 key.
  663. * Switches to HDMI input #1. */
  664. AKEYCODE_TV_INPUT_HDMI_1 = 243,
  665. /** HDMI #2 key.
  666. * Switches to HDMI input #2. */
  667. AKEYCODE_TV_INPUT_HDMI_2 = 244,
  668. /** HDMI #3 key.
  669. * Switches to HDMI input #3. */
  670. AKEYCODE_TV_INPUT_HDMI_3 = 245,
  671. /** HDMI #4 key.
  672. * Switches to HDMI input #4. */
  673. AKEYCODE_TV_INPUT_HDMI_4 = 246,
  674. /** Composite #1 key.
  675. * Switches to composite video input #1. */
  676. AKEYCODE_TV_INPUT_COMPOSITE_1 = 247,
  677. /** Composite #2 key.
  678. * Switches to composite video input #2. */
  679. AKEYCODE_TV_INPUT_COMPOSITE_2 = 248,
  680. /** Component #1 key.
  681. * Switches to component video input #1. */
  682. AKEYCODE_TV_INPUT_COMPONENT_1 = 249,
  683. /** Component #2 key.
  684. * Switches to component video input #2. */
  685. AKEYCODE_TV_INPUT_COMPONENT_2 = 250,
  686. /** VGA #1 key.
  687. * Switches to VGA (analog RGB) input #1. */
  688. AKEYCODE_TV_INPUT_VGA_1 = 251,
  689. /** Audio description key.
  690. * Toggles audio description off / on. */
  691. AKEYCODE_TV_AUDIO_DESCRIPTION = 252,
  692. /** Audio description mixing volume up key.
  693. * Louden audio description volume as compared with normal audio volume. */
  694. AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP = 253,
  695. /** Audio description mixing volume down key.
  696. * Lessen audio description volume as compared with normal audio volume. */
  697. AKEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN = 254,
  698. /** Zoom mode key.
  699. * Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.) */
  700. AKEYCODE_TV_ZOOM_MODE = 255,
  701. /** Contents menu key.
  702. * Goes to the title list. Corresponds to Contents Menu (0x0B) of CEC User Control
  703. * Code */
  704. AKEYCODE_TV_CONTENTS_MENU = 256,
  705. /** Media context menu key.
  706. * Goes to the context menu of media contents. Corresponds to Media Context-sensitive
  707. * Menu (0x11) of CEC User Control Code. */
  708. AKEYCODE_TV_MEDIA_CONTEXT_MENU = 257,
  709. /** Timer programming key.
  710. * Goes to the timer recording menu. Corresponds to Timer Programming (0x54) of
  711. * CEC User Control Code. */
  712. AKEYCODE_TV_TIMER_PROGRAMMING = 258,
  713. /** Help key. */
  714. AKEYCODE_HELP = 259,
  715. AKEYCODE_NAVIGATE_PREVIOUS = 260,
  716. AKEYCODE_NAVIGATE_NEXT = 261,
  717. AKEYCODE_NAVIGATE_IN = 262,
  718. AKEYCODE_NAVIGATE_OUT = 263,
  719. /** Primary stem key for Wear
  720. * Main power/reset button on watch. */
  721. AKEYCODE_STEM_PRIMARY = 264,
  722. /** Generic stem key 1 for Wear */
  723. AKEYCODE_STEM_1 = 265,
  724. /** Generic stem key 2 for Wear */
  725. AKEYCODE_STEM_2 = 266,
  726. /** Generic stem key 3 for Wear */
  727. AKEYCODE_STEM_3 = 267,
  728. AKEYCODE_MEDIA_SKIP_FORWARD = 272,
  729. AKEYCODE_MEDIA_SKIP_BACKWARD = 273,
  730. AKEYCODE_MEDIA_STEP_FORWARD = 274,
  731. AKEYCODE_MEDIA_STEP_BACKWARD = 275,
  732. /** Put device to sleep unless a wakelock is held. */
  733. AKEYCODE_SOFT_SLEEP = 276
  734. // NOTE: If you add a new keycode here you must also add it to several other files.
  735. // Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
  736. };
  737. #ifdef __cplusplus
  738. }
  739. #endif
  740. #endif // _ANDROID_KEYCODES_H
  741. /** @} */