keycodes.h 28 KB

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