【EasyClick】【安卓】安卓KeyEvent.KEYCODE表按键对应表
基本按键
KEYCODE_0按键'0'7
KEYCODE_1按键'1'8
KEYCODE_2按键'2'9
KEYCODE_3按键'3'10
KEYCODE_4按键'4'11
KEYCODE_5按键'5'12
KEYCODE_6按键'6'13
KEYCODE_7按键'7'14
KEYCODE_8按键'8'15
KEYCODE_9按键'9'16
KEYCODE_A按键'A'29
KEYCODE_B按键'B'30
KEYCODE_C按键'C'31
KEYCODE_D按键'D'32
KEYCODE_E按键'E'33
KEYCODE_F按键'F'34
KEYCODE_G按键'G'35
KEYCODE_H按键'H'36
KEYCODE_I按键'I'37
KEYCODE_J按键'J'38
KEYCODE_K按键'K'39
KEYCODE_L按键'L'40
KEYCODE_M按键'M'41
KEYCODE_N按键'N'42
KEYCODE_O按键'O'43
KEYCODE_P按键'P'44
KEYCODE_Q按键'Q'45
KEYCODE_R按键'R'46
KEYCODE_S按键'S'47
KEYCODE_T按键'T'48
KEYCODE_U按键'U'49
KEYCODE_V按键'V'50
KEYCODE_W按键'W'51
KEYCODE_X按键'X'52
KEYCODE_Y按键'Y'53
KEYCODE_Z按键'Z'54
手柄按键
KEYCODE_BUTTON_1通用游戏手柄按钮#1188
KEYCODE_BUTTON_2通用游戏手柄按钮 #2189
KEYCODE_BUTTON_3通用游戏手柄按钮 #3190
KEYCODE_BUTTON_4通用游戏手柄按钮 #4191
KEYCODE_BUTTON_5通用游戏手柄按钮 #5192
KEYCODE_BUTTON_6通用游戏手柄按钮 #6193
KEYCODE_BUTTON_7通用游戏手柄按钮 #7194
KEYCODE_BUTTON_8通用游戏手柄按钮 #8195
KEYCODE_BUTTON_9通用游戏手柄按钮 #9196
KEYCODE_BUTTON_10通用游戏手柄按钮 #10197
KEYCODE_BUTTON_11通用游戏手柄按钮 #11198
KEYCODE_BUTTON_12通用游戏手柄按钮 #12199
KEYCODE_BUTTON_13通用游戏手柄按钮 #13200
KEYCODE_BUTTON_14通用游戏手柄按钮 #14201
KEYCODE_BUTTON_15通用游戏手柄按钮 #15202
KEYCODE_BUTTON_16通用游戏手柄按钮 #16203
KEYCODE_BUTTON_A游戏手柄按钮 A96
KEYCODE_BUTTON_B游戏手柄按钮 B97
KEYCODE_BUTTON_C游戏手柄按钮 C98
KEYCODE_BUTTON_X游戏手柄按钮 X99
KEYCODE_BUTTON_Y游戏手柄按钮 Y100
KEYCODE_BUTTON_Z游戏手柄按钮 Z101
KEYCODE_BUTTON_L1游戏手柄按钮 L1102
KEYCODE_BUTTON_L2游戏手柄按钮 L2104
KEYCODE_BUTTON_R1游戏手柄按钮 R1103
KEYCODE_BUTTON_R2游戏手柄按钮 R2105
KEYCODE_BUTTON_MODE游戏手柄按钮 Mode110
KEYCODE_BUTTON_SELECT游戏手柄按钮 Select109
KEYCODE_BUTTON_START游戏手柄按钮 Start108
KEYCODE_BUTTON_THUMBLLeft Thumb Button106
KEYCODE_BUTTON_THUMBRRight Thumb Button107
电话按键
KEYCODE_CALL拨号键5
KEYCODE_ENDCALL挂机键6
KEYCODE_HOME按键Home3
KEYCODE_MENU菜单键82
KEYCODE_BACK返回键4
KEYCODE_SEARCH搜索键84
KEYCODE_CAMERA拍照键27
KEYCODE_FOCUS拍照对焦键80
KEYCODE_POWER电源键26
KEYCODE_NOTIFICATION通知键83
KEYCODE_MUTE话筒静音键91
KEYCODE_VOLUME_MUTE扬声器静音键164
KEYCODE_VOLUME_UP音量增加键24
KEYCODE_VOLUME_DOWN音量减小键25
控制按键
KEYCODE_ENTER回车键66
KEYCODE_ESCAPEESC键111
KEYCODE_DPAD_CENTER导航键 确定键23
KEYCODE_DPAD_UP导航键 向上19
KEYCODE_DPAD_DOWN导航键 向下20
KEYCODE_DPAD_LEFT导航键 向左21
KEYCODE_DPAD_RIGHT导航键 向右22
KEYCODE_MOVE_HOME光标移动到开始键122
KEYCODE_MOVE_END光标移动到末尾键123
KEYCODE_PAGE_UP向上翻页键92
KEYCODE_PAGE_DOWN向下翻页键93
KEYCODE_DEL退格键67
KEYCODE_FORWARD_DEL删除键112
KEYCODE_INSERT插入键124
KEYCODE_TABTab键61
KEYCODE_NUM_LOCK小键盘锁143
KEYCODE_CAPS_LOCK大写锁定键115
KEYCODE_BREAKBreak/Pause键121
KEYCODE_SCROLL_LOCK滚动锁定键116
KEYCODE_ZOOM_IN放大键168
KEYCODE_ZOOM_OUT缩小键169
组合键
KEYCODE_ALT_LEFTAlt+Left57
KEYCODE_ALT_RIGHTAlt+Right58
KEYCODE_CTRL_LEFTControl+Left113
KEYCODE_CTRL_RIGHTControl+Right114
KEYCODE_SHIFT_LEFTShift+Left59
KEYCODE_SHIFT_RIGHTShift+Right60
符号
KEYCODE_PLUS按键'+'81
KEYCODE_MINUS按键'-'69
KEYCODE_STAR按键'*'17
KEYCODE_SLASH按键'/'76
KEYCODE_EQUALS按键'='70
KEYCODE_AT按键'@'77
KEYCODE_POUND按键'#'18
KEYCODE_APOSTROPHE按键''' (单引号)75
KEYCODE_BACKSLASH按键'\'73
KEYCODE_COMMA按键','55
KEYCODE_PERIOD按键'.'56
KEYCODE_LEFT_BRACKET按键'['71
KEYCODE_RIGHT_BRACKET按键']'72
KEYCODE_SEMICOLON按键';'74
KEYCODE_GRAVE按键'`'68
KEYCODE_SPACE空格键62
小键盘
KEYCODE_NUMPAD_0小键盘按键'0'144
KEYCODE_NUMPAD_1小键盘按键'1'145
KEYCODE_NUMPAD_2小键盘按键'2'146
KEYCODE_NUMPAD_3小键盘按键'3'147
KEYCODE_NUMPAD_4小键盘按键'4'148
KEYCODE_NUMPAD_5小键盘按键'5'149
KEYCODE_NUMPAD_6小键盘按键'6'150
KEYCODE_NUMPAD_7小键盘按键'7'151
KEYCODE_NUMPAD_8小键盘按键'8'152
KEYCODE_NUMPAD_9小键盘按键'9'153
KEYCODE_NUMPAD_ADD小键盘按键'+'157
KEYCODE_NUMPAD_SUBTRACT小键盘按键'-'156
KEYCODE_NUMPAD_MULTIPLY小键盘按键'*'155
KEYCODE_NUMPAD_DIVIDE小键盘按键'/'154
KEYCODE_NUMPAD_EQUALS小键盘按键'='161
KEYCODE_NUMPAD_COMMA小键盘按键','159
KEYCODE_NUMPAD_DOT小键盘按键'.'158
KEYCODE_NUMPAD_LEFT_PAREN小键盘按键'('162
KEYCODE_NUMPAD_RIGHT_PAREN小键盘按键')'163
KEYCODE_NUMPAD_ENTER小键盘按键回车160
功能键
KEYCODE_F1按键F1131
KEYCODE_F2按键F2132
KEYCODE_F3按键F3133
KEYCODE_F4按键F4134
KEYCODE_F5按键F5135
KEYCODE_F6按键F6136
KEYCODE_F7按键F7137
KEYCODE_F8按键F8138
KEYCODE_F9按键F9139
KEYCODE_F10按键F10140
KEYCODE_F11按键F11141
KEYCODE_F12按键F12142
多媒体键
KEYCODE_MEDIA_PLAY多媒体键 播放126
KEYCODE_MEDIA_STOP多媒体键 停止86
KEYCODE_MEDIA_PAUSE多媒体键 暂停127
KEYCODE_MEDIA_PLAY_PAUSE多媒体键 播放/暂停85
KEYCODE_MEDIA_FAST_FORWARD多媒体键 快进90
KEYCODE_MEDIA_REWIND多媒体键 快退89
KEYCODE_MEDIA_NEXT多媒体键 下一首87
KEYCODE_MEDIA_PREVIOUS多媒体键 上一首88
KEYCODE_MEDIA_CLOSE多媒体键 关闭128
KEYCODE_MEDIA_EJECT多媒体键 弹出129
KEYCODE_MEDIA_RECORD多媒体键 录音130
其他
KEYCODE_NUM按键Number modifier78
KEYCODE_INFO按键Info165
KEYCODE_APP_SWITCH按键App switch187
KEYCODE_BOOKMARK按键Bookmark174
KEYCODE_AVR_INPUT按键A/V Receiver input182
KEYCODE_AVR_POWER按键A/V Receiver power181
KEYCODE_CAPTIONS按键Toggle captions175
KEYCODE_CHANNEL_DOWN按键Channel down167
KEYCODE_CHANNEL_UP按键Channel up166
KEYCODE_CLEAR按键Clear28
KEYCODE_DVR按键DVR173
KEYCODE_ENVELOPE按键Envelope special function65
KEYCODE_EXPLORER按键Explorer special function64
KEYCODE_FORWARD按键Forward125
KEYCODE_FORWARD_DEL按键Forward Delete112
KEYCODE_FUNCTION按键Function modifier119
KEYCODE_GUIDE按键Guide172
KEYCODE_HEADSETHOOK按键Headset Hook79
KEYCODE_META_LEFT按键Left Meta modifier117
KEYCODE_META_RIGHT按键Right Meta modifier118
KEYCODE_PICTSYMBOLS按键Picture Symbols modifier94
KEYCODE_PROG_BLUE按键Blue “programmable”186
KEYCODE_PROG_GREEN按键Green “programmable”184
KEYCODE_PROG_RED按键Red “programmable”183
KEYCODE_PROG_YELLOW按键Yellow “programmable”185
KEYCODE_SETTINGS按键Settings176
KEYCODE_SOFT_LEFT按键Soft Left1
KEYCODE_SOFT_RIGHT按键Soft Right2
KEYCODE_STB_INPUT按键Set-top-box input180
KEYCODE_STB_POWER按键Set-top-box power179
KEYCODE_SWITCH_CHARSET按键Switch Charset modifier95
KEYCODE_SYM按键Symbol modifier63
KEYCODE_SYSRQ按键System Request / Print Screen120
KEYCODE_TV按键TV170
KEYCODE_TV_INPUT按键TV input178
KEYCODE_TV_POWER按键TV power177
KEYCODE_WINDOW按键Window171
KEYCODE_UNKNOWN未知按键0
ADB命令
adb shell input keyevent 3 # 发送HOME按键
adb shell input keyevent KEYCODE_HOME # 发送HOME按键
页:
[1]