NDKでキーコードを取得するときにJAVA側のキーコードを引っ張ってくるのが面倒なのでメモメモ
KEYCODE_UNKNOWN | 0 | 0x0 | Unknown key code. |
KEYCODE_SOFT_LEFT | 1 | 0x1 | Soft Left key. |
KEYCODE_SOFT_RIGHT | 2 | 0x2 | Soft Right key. |
KEYCODE_HOME | 3 | 0x3 | Home key. |
KEYCODE_BACK | 4 | 0x4 | Back key. |
KEYCODE_CALL | 5 | 0x5 | Call key. |
KEYCODE_ENDCALL | 6 | 0x6 | End Call key. |
KEYCODE_0 | 7 | 0x7 | '0' key. |
KEYCODE_1 | 8 | 0x8 | '1' key. |
KEYCODE_2 | 9 | 0x9 | '2' key. |
KEYCODE_3 | 10 | 0xA | '3' key. |
KEYCODE_4 | 11 | 0xB | '4' key. |
KEYCODE_5 | 12 | 0xC | '5' key. |
KEYCODE_6 | 13 | 0xD | '6' key. |
KEYCODE_7 | 14 | 0xE | '7' key. |
KEYCODE_8 | 15 | 0xF | '8' key. |
KEYCODE_9 | 16 | 0x10 | '9' key. |
KEYCODE_STAR | 17 | 0x11 | '*' key. |
KEYCODE_POUND | 18 | 0x12 | '#' key. |
KEYCODE_DPAD_UP | 19 | 0x13 | Directional Pad Up key.* May also be synthesized from trackball motions. |
KEYCODE_DPAD_DOWN | 20 | 0x14 | Directional Pad Down key.* May also be synthesized from trackball motions. |
KEYCODE_DPAD_LEFT | 21 | 0x15 | Directional Pad Left key.* May also be synthesized from trackball motions. |
KEYCODE_DPAD_RIGHT | 22 | 0x16 | Directional Pad Right key. * May also be synthesized from trackball motions. |
KEYCODE_DPAD_CENTER | 23 | 0x17 | Directional Pad Center key. * May also be synthesized from trackball motions. |
KEYCODE_VOLUME_UP | 24 | 0x18 | Volume Up key. * Adjusts the speaker volume up. |
KEYCODE_VOLUME_DOWN | 25 | 0x19 | Volume Down key. * Adjusts the speaker volume down. |
KEYCODE_POWER | 26 | 0x1A | Power key. |
KEYCODE_CAMERA | 27 | 0x1B | Camera key. * Used to launch a camera application or take pictures. |
KEYCODE_CLEAR | 28 | 0x1C | Clear key. |
KEYCODE_A | 29 | 0x1D | 'A' key. |
KEYCODE_B | 30 | 0x1E | 'B' key. |
KEYCODE_C | 31 | 0x1F | 'C' key. |
KEYCODE_D | 32 | 0x20 | 'D' key. |
KEYCODE_E | 33 | 0x21 | 'E' key. |
KEYCODE_F | 34 | 0x22 | 'F' key. |
KEYCODE_G | 35 | 0x23 | 'G' key. |
KEYCODE_H | 36 | 0x24 | 'H' key. |
KEYCODE_I | 37 | 0x25 | 'I' key. |
KEYCODE_J | 38 | 0x26 | 'J' key. |
KEYCODE_K | 39 | 0x27 | 'K' key. |
KEYCODE_L | 40 | 0x28 | 'L' key. |
KEYCODE_M | 41 | 0x29 | 'M' key. |
KEYCODE_N | 42 | 0x2A | 'N' key. |
KEYCODE_O | 43 | 0x2B | 'O' key. |
KEYCODE_P | 44 | 0x2C | 'P' key. |
KEYCODE_Q | 45 | 0x2D | 'Q' key. |
KEYCODE_R | 46 | 0x2E | 'R' key. |
KEYCODE_S | 47 | 0x2F | 'S' key. |
KEYCODE_T | 48 | 0x30 | 'T' key. |
KEYCODE_U | 49 | 0x31 | 'U' key. |
KEYCODE_V | 50 | 0x32 | 'V' key. |
KEYCODE_W | 51 | 0x33 | 'W' key. |
KEYCODE_X | 52 | 0x34 | 'X' key. |
KEYCODE_Y | 53 | 0x35 | 'Y' key. |
KEYCODE_Z | 54 | 0x36 | 'Z' key. |
KEYCODE_COMMA | 55 | 0x37 | ',' key. |
KEYCODE_PERIOD | 56 | 0x38 | '.' key. |
KEYCODE_ALT_LEFT | 57 | 0x39 | Left Alt modifier key. |
KEYCODE_ALT_RIGHT | 58 | 0x3A | Right Alt modifier key. |
KEYCODE_SHIFT_LEFT | 59 | 0x3B | Left Shift modifier key. |
KEYCODE_SHIFT_RIGHT | 60 | 0x3C | Right Shift modifier key. |
KEYCODE_TAB | 61 | 0x3D | Tab key. |
KEYCODE_SPACE | 62 | 0x3E | Space key. |
KEYCODE_SYM | 63 | 0x3F | Symbol modifier key. * Used to enter alternate symbols. |
KEYCODE_EXPLORER | 64 | 0x40 | Explorer special function key. * Used to launch a browser application. |
KEYCODE_ENVELOPE | 65 | 0x41 | Envelope special function key. * Used to launch a mail application. |
KEYCODE_ENTER | 66 | 0x42 | Enter key. |
KEYCODE_DEL | 67 | 0x43 | Backspace key. * Deletes characters before the insertion point, unlike {@link #KEYCODE_FORWARD_DEL}. |
KEYCODE_GRAVE | 68 | 0x44 | '`' (backtick) key. |
KEYCODE_MINUS | 69 | 0x45 | '-'. |
KEYCODE_EQUALS | 70 | 0x46 | '=' key. |
KEYCODE_LEFT_BRACKET | 71 | 0x47 | '[' key. |
KEYCODE_RIGHT_BRACKET | 72 | 0x48 | ']' key. |
KEYCODE_BACKSLASH | 73 | 0x49 | '\' key. |
KEYCODE_SEMICOLON | 74 | 0x4A | ';' key. |
KEYCODE_APOSTROPHE | 75 | 0x4B | ''' (apostrophe) key. |
KEYCODE_SLASH | 76 | 0x4C | '/' key. |
KEYCODE_AT | 77 | 0x4D | '@' key. |
KEYCODE_NUM | 78 | 0x4E | Number modifier key. * interpreted as an ALT key by {@link android.text.method.MetaKeyKeyListener}. |
KEYCODE_HEADSETHOOK | 79 | 0x4F | Headset Hook key.* Used to hang up calls and stop media. |
KEYCODE_FOCUS | 80 | 0x50 | Camera Focus key.* Used to focus the camera. |
KEYCODE_PLUS | 81 | 0x51 | '+' key. |
KEYCODE_MENU | 82 | 0x52 | Menu key. |
KEYCODE_NOTIFICATION | 83 | 0x53 | Notification key. |
KEYCODE_SEARCH | 84 | 0x54 | Search key. |
KEYCODE_MEDIA_PLAY_PAUSE | 85 | 0x55 | Play/Pause media key. |
KEYCODE_MEDIA_STOP | 86 | 0x56 | Stop media key. |
KEYCODE_MEDIA_NEXT | 87 | 0x57 | Play Next media key. |
KEYCODE_MEDIA_PREVIOUS | 88 | 0x58 | Play Previous media key. |
KEYCODE_MEDIA_REWIND | 89 | 0x59 | Rewind media key. |
KEYCODE_MEDIA_FAST_FORWARD | 90 | 0x5A | Fast Forward media key. |
KEYCODE_MUTE | 91 | 0x5B | Mute key. * Mutes the microphone, unlike {@link #KEYCODE_VOLUME_MUTE}. |
KEYCODE_PAGE_UP | 92 | 0x5C | Page Up key. |
KEYCODE_PAGE_DOWN | 93 | 0x5D | Page Down key. |
KEYCODE_PICTSYMBOLS | 94 | 0x5E | Picture Symbols modifier key.* Used to switch symbol sets (Emoji, Kao-moji). |
KEYCODE_SWITCH_CHARSET | 95 | 0x5F | switch char-sets (Kanji,Katakana) |
KEYCODE_BUTTON_A | 96 | 0x60 | Key code constant: B Button key. |
KEYCODE_BUTTON_B | 97 | 0x61 | B Button key. |
KEYCODE_BUTTON_C | 98 | 0x62 | C Button key. |
KEYCODE_BUTTON_X | 99 | 0x63 | X Button key. |
KEYCODE_BUTTON_Y | 100 | 0x64 | Y Button key. |
KEYCODE_BUTTON_Z | 101 | 0x65 | Z Button key. |
KEYCODE_BUTTON_L1 | 102 | 0x66 | L1 Button key. |
KEYCODE_BUTTON_R1 | 103 | 0x67 | R1 Button key. |
KEYCODE_BUTTON_L2 | 104 | 0x68 | L2 Button key. |
KEYCODE_BUTTON_R2 | 105 | 0x69 | R2 Button key. |
KEYCODE_BUTTON_THUMBL | 106 | 0x6A | Left Thumb Button key. |
KEYCODE_BUTTON_THUMBR | 107 | 0x6B | Right Thumb Button key. |
KEYCODE_BUTTON_START | 108 | 0x6C | Start Button key. |
KEYCODE_BUTTON_SELECT | 109 | 0x6D | Select Button key. |
KEYCODE_BUTTON_MODE | 110 | 0x6E | Mode Button key. |
KEYCODE_ESCAPE | 111 | 0x6F | Escape key. |
KEYCODE_FORWARD_DEL | 112 | 0x70 | Forward Delete key. |
KEYCODE_CTRL_LEFT | 113 | 0x71 | Left Control modifier key. |
KEYCODE_CTRL_RIGHT | 114 | 0x72 | Right Control modifier key. |
KEYCODE_CAPS_LOCK | 115 | 0x73 | Caps Lock key. |
KEYCODE_SCROLL_LOCK | 116 | 0x74 | Scroll Lock key. |
KEYCODE_META_LEFT | 117 | 0x75 | Left Meta modifier key. |
KEYCODE_META_RIGHT | 118 | 0x76 | Right Meta modifier key. |
KEYCODE_FUNCTION | 119 | 0x77 | Function modifier key. |
KEYCODE_SYSRQ | 120 | 0x78 | System Request / Print Screen key. |
KEYCODE_BREAK | 121 | 0x79 | Break / Pause key. |
KEYCODE_MOVE_HOME | 122 | 0x7A | Home Movement key. |
KEYCODE_MOVE_END | 123 | 0x7B | End Movement key. |
KEYCODE_INSERT | 124 | 0x7C | Insert key. |
KEYCODE_FORWARD | 125 | 0x7D | Forward key. |
KEYCODE_MEDIA_PLAY | 126 | 0x7E | Play media key. |
KEYCODE_MEDIA_PAUSE | 127 | 0x7F | Pause media key. |
KEYCODE_MEDIA_CLOSE | 128 | 0x80 | Close media key. |
KEYCODE_MEDIA_EJECT | 129 | 0x81 | Eject media key. |
KEYCODE_MEDIA_RECORD | 130 | 0x82 | Record media key. |
KEYCODE_F1 | 131 | 0x83 | F1 key. |
KEYCODE_F2 | 132 | 0x84 | F2 key. |
KEYCODE_F3 | 133 | 0x85 | F3 key. |
KEYCODE_F4 | 134 | 0x86 | F4 key. |
KEYCODE_F5 | 135 | 0x87 | F5 key. |
KEYCODE_F6 | 136 | 0x88 | F6 key. |
KEYCODE_F7 | 137 | 0x89 | F7 key. |
KEYCODE_F8 | 138 | 0x8A | F8 key. |
KEYCODE_F9 | 139 | 0x8B | F9 key. |
KEYCODE_F10 | 140 | 0x8C | F10 key. |
KEYCODE_F11 | 141 | 0x8D | F11 key. |
KEYCODE_F12 | 142 | 0x8E | F12 key. |
KEYCODE_NUM_LOCK | 143 | 0x8F | Num Lock key. |
KEYCODE_NUMPAD_0 | 144 | 0x90 | Numeric keypad '0' key. |
KEYCODE_NUMPAD_1 | 145 | 0x91 | Numeric keypad '1' key. |
KEYCODE_NUMPAD_2 | 146 | 0x92 | Numeric keypad '2' key. |
KEYCODE_NUMPAD_3 | 147 | 0x93 | Numeric keypad '3' key. |
KEYCODE_NUMPAD_4 | 148 | 0x94 | Numeric keypad '4' key. |
KEYCODE_NUMPAD_5 | 149 | 0x95 | Numeric keypad '5' key. |
KEYCODE_NUMPAD_6 | 150 | 0x96 | Numeric keypad '6' key. |
KEYCODE_NUMPAD_7 | 151 | 0x97 | Numeric keypad '7' key. |
KEYCODE_NUMPAD_8 | 152 | 0x98 | Numeric keypad '8' key. |
KEYCODE_NUMPAD_9 | 153 | 0x99 | Numeric keypad '9' key. |
KEYCODE_NUMPAD_DIVIDE | 154 | 0x9A | Numeric keypad '/' key (for division). |
KEYCODE_NUMPAD_MULTIPLY | 155 | 0x9B | Numeric keypad '*' key (for multiplication). |
KEYCODE_NUMPAD_SUBTRACT | 156 | 0x9C | Numeric keypad '-' key (for subtraction). |
KEYCODE_NUMPAD_ADD | 157 | 0x9D | Numeric keypad '+' key (for addition). |
KEYCODE_NUMPAD_DOT | 158 | 0x9E | Numeric keypad '.' key (for decimals or digit grouping). |
KEYCODE_NUMPAD_COMMA | 159 | 0x9F | Numeric keypad ',' key (for decimals or digit grouping). |
KEYCODE_NUMPAD_ENTER | 160 | 0xA0 | Numeric keypad Enter key. |
KEYCODE_NUMPAD_EQUALS | 161 | 0xA1 | Numeric keypad '=' key. |
KEYCODE_NUMPAD_LEFT_PAREN | 162 | 0xA2 | Numeric keypad '(' key. |
KEYCODE_NUMPAD_RIGHT_PAREN | 163 | 0xA3 | Numeric keypad ')' key. |
KEYCODE_VOLUME_MUTE | 164 | 0xA4 | Volume Mute key. |
KEYCODE_INFO | 165 | 0xA5 | Info key. |
KEYCODE_CHANNEL_UP | 166 | 0xA6 | Channel up key. |
KEYCODE_CHANNEL_DOWN | 167 | 0xA7 | Channel down key. |
KEYCODE_ZOOM_IN | 168 | 0xA8 | Zoom in key. |
KEYCODE_ZOOM_OUT | 169 | 0xA9 | Zoom out key. |
KEYCODE_TV | 170 | 0xAA | TV key. |
KEYCODE_WINDOW | 171 | 0xAB | Window key. |
KEYCODE_GUIDE | 172 | 0xAC | Guide key. |
KEYCODE_DVR | 173 | 0xAD | DVR key. |
KEYCODE_BOOKMARK | 174 | 0xAE | Bookmark key. |
KEYCODE_CAPTIONS | 175 | 0xAF | Toggle captions key. |
KEYCODE_SETTINGS | 176 | 0xB0 | Settings key. |
KEYCODE_TV_POWER | 177 | 0xB1 | TV power key. |
KEYCODE_TV_INPUT | 178 | 0xB2 | TV input key. |
KEYCODE_STB_POWER | 179 | 0xB3 | Set-top-box power key. |
KEYCODE_STB_INPUT | 180 | 0xB4 | Set-top-box input key. |
KEYCODE_AVR_POWER | 181 | 0xB5 | A/V Receiver power key. |
KEYCODE_AVR_INPUT | 182 | 0xB6 | A/V Receiver input key. |
KEYCODE_PROG_RED | 183 | 0xB7 | Red "programmable" key. |
KEYCODE_PROG_GREEN | 184 | 0xB8 | Green "programmable" key. |
KEYCODE_PROG_YELLOW | 185 | 0xB9 | Yellow "programmable" key. |
KEYCODE_PROG_BLUE | 186 | 0xBA | Blue "programmable" key. |
KEYCODE_APP_SWITCH | 187 | 0xBB | App switch key. |
KEYCODE_BUTTON_1 | 188 | 0xBC | Generic Game Pad Button #1. |
KEYCODE_BUTTON_2 | 189 | 0xBD | Generic Game Pad Button #2. |
KEYCODE_BUTTON_3 | 190 | 0xBE | Generic Game Pad Button #3. |
KEYCODE_BUTTON_4 | 191 | 0xBF | Generic Game Pad Button #4. |
KEYCODE_BUTTON_5 | 192 | 0xC0 | Generic Game Pad Button #5. |
KEYCODE_BUTTON_6 | 193 | 0xC1 | Generic Game Pad Button #6. |
KEYCODE_BUTTON_7 | 194 | 0xC2 | Generic Game Pad Button #7. |
KEYCODE_BUTTON_8 | 195 | 0xC3 | Generic Game Pad Button #8. |
KEYCODE_BUTTON_9 | 196 | 0xC4 | Generic Game Pad Button #9. |
KEYCODE_BUTTON_10 | 197 | 0xC5 | Generic Game Pad Button #10. |
KEYCODE_BUTTON_11 | 198 | 0xC6 | Generic Game Pad Button #11. |
KEYCODE_BUTTON_12 | 199 | 0xC7 | Generic Game Pad Button #12. |
KEYCODE_BUTTON_13 | 200 | 0xC8 | Generic Game Pad Button #13. |
KEYCODE_BUTTON_14 | 201 | 0xC9 | Generic Game Pad Button #14. |
KEYCODE_BUTTON_15 | 202 | 0xCA | Generic Game Pad Button #15. |
KEYCODE_BUTTON_16 | 203 | 0xCB | Generic Game Pad Button #16. |
KEYCODE_LANGUAGE_SWITCH | 204 | 0xCC | Language Switch key. |
KEYCODE_MANNER_MODE | 205 | 0xCD | Manner Mode key. |
KEYCODE_3D_MODE | 206 | 0xCE | 3D Mode key. |
KEYCODE_CONTACTS | 207 | 0xCF | Contacts special function key. |
KEYCODE_CALENDAR | 208 | 0xD0 | Calendar special function key. |
KEYCODE_MUSIC | 209 | 0xD1 | Music special function key. |
KEYCODE_CALCULATOR | 210 | 0xD2 | Calculator special function key. |
KEYCODE_ZENKAKU_HANKAKU | 211 | 0xD3 | Japanese full-width / half-width key. |
KEYCODE_EISU | 212 | 0xD4 | Japanese alphanumeric key. |
KEYCODE_MUHENKAN | 213 | 0xD5 | Japanese non-conversion key. |
KEYCODE_HENKAN | 214 | 0xD6 | Japanese conversion key. |
KEYCODE_KATAKANA_HIRAGANA | 215 | 0xD7 | Japanese katakana / hiragana key. |
KEYCODE_YEN | 216 | 0xD8 | Japanese Yen key. |
KEYCODE_RO | 217 | 0xD9 | Japanese Ro key. |
KEYCODE_KANA | 218 | 0xDA | Japanese kana key. |
KEYCODE_ASSIST | 219 | 0xDB | Assist key. |
KEYCODE_BRIGHTNESS_DOWN | 220 | 0xDC | Brightness Down key. |
KEYCODE_BRIGHTNESS_UP | 221 | 0xDD | Brightness Up key. |
KEYCODE_MEDIA_AUDIO_TRACK | 222 | 0xDE | Audio Track key |