PS2键盘编码
KEY
通码
断码
KEY
通码
断码
KEY
通码
断码
A
1C
F0 1C
   
9
46
F0 46
   
[
54
F0 54
B
32
F0 32
`
0E
F0 0E
INSERT
E0 70
E0 F0 70
C
21
F0 21
-
4E
F0 4E
HOME
E0 6C
E0 F0 6C
D
23
F0 23
=
55
F0 55
PG UP
E0 7D
E0 F0 7D
E
24
F0 24
\
5D
F0 5D
DELETE
E0 71
E0 F0 71
F
2B
F0 2B
BKSP
66
F0 66
END
E0 69
E0 F0 69
G
34
F0 34
SPACE
29
F0 29
PG DN
E0 7A
E0 F0 7A
H
33
F0 33
TAB
0D
F0 0D
U ARROW
E0 75
E0 F0 75
I
43
F0 43
CAPS
58
F0 58
L ARROW
E0 6B
E0 F0 6B
J
3B
F0 3B
L SHFT
12
F0 12
D ARROW
E0 72
E0 F0 72
K
42
F0 42
L CTRL
14
F0 14
R ARROW
E0 74
E0 F0 74
L
4B
F0 4B
L GUI
E0 1F
E0 F0 1F
NUM
77
F0  77
M
3A
F0 3A
L ALT
11
F0 11
KP /
E0 4A
E0 F0 4A
N
31
F0 31
R SHFT
59
F0 59
KP *
7C
F0  7C
O
44
F0 44
R CTRL
E0 14
E0 F0 14
KP -
7B
F0 7B
P
4D
F0 4D
R GUI
E0 27
E0 F0 27
KP +
79
F0 79
Q
15
F0 15
R ALT
E0 11
E0 F0 11
KP EN
E0 5A
E0 F0 5A
R
2D
F0 2D
APPS
E0 2F
E0 F0 2F
KP
71
F0 71
S
1B
F0 1B
ENTER
5A
F0 5A
KP 0
70
F0 70
T
2C
F0 2C
ESC
76
F0 76
KP 1
69
F0 69
U
3C
F0 3C
F1
05
F0 05
KP 2
72
F0 72
V
2A
F0 2A
F2
06
F0 06
KP 3
7A
F0 7A
W
1D
F0 1D
F3
04
F0 04
KP 4
6B
F0 6B
X
22
F0 22
F4
0C
F0 0C
KP 5
73
F0 73
Y
35
F0 35
F5
03
F0 03
KP 6
74
F0 74
Z
1A
F0 1A
F6
0B
F0 0B
KP 7
6C
memory按键是什么意思F0 6C
0
45
F0 45
F7
83
F0 83
KP 8
75
F0 75
1
16
F0 16
F8
0A
F0 0A
KP 9
7D
F0 7D
2
1E
F0 1E
F9
01
F0 01
]
58
F0 58
3
26
F0 26
F10
09
F0 09
;
4C
F0 4C
4
25
F0 25
F11
78
F0 78
'
52
F0 52
5
2E
F0 2E
F12
07
F0 07
,
41
F0 41
6
36
F0 36
PRNT
SCRN
E0 12
E0 7C
E0 F0
7C E0
F0 12
.
49
F0 49
7
3D
F0 3D
SCROLL
7E
F0,7E
/
4A
F0 4A
8
3E
F0 3E
PAUSE
E1 14 77
E1 F0 14
F0 77
-NONE-
            USB键盘编码
这是从USB HID应用手册里面截选出来的一段。
实际上常用的也就前面的几项,比如
83 53 Keypad Num Lock and Clear11 90 √ √ √ 101/104
 
83是键值的10进制编码,53是键值的16进制编码,然后 Keypad Num Lock and Clear的意思是小键盘(数字键盘)锁按键
 
再比如20 14 Keyboard q and Q4 17 √ √ √ 4/101/104
 
20也是键q的十进值编码,14是十六进制编码,后面注释是字母q或Q的编码。
0 00 Reserved (no event indicated)9 N/A √ √ √ 4/101/104
1 01 Keyboard ErrorRollOver9 N/A √ √ √ 4/101/104
2 02 Keyboard POSTFail9 N/A √ √ √ 4/101/104
3 03 Keyboard ErrorUndefined9 N/A √ √ √ 4/101/104
4 04 Keyboard a and A4 31 √ √ √ 4/101/104
5 05 Keyboard b and B 50 √ √ √ 4/101/104
6 06 Keyboard c and C4 48 √ √ √ 4/101/104
7 07 Keyboard d and D 33 √ √ √ 4/101/104
8 08 Keyboard e and E 19 √ √ √ 4/101/104
9 09 Keyboard f and F 34 √ √ √ 4/101/104
10 0A Keyboard g and G 35 √ √ √ 4/101/104
11 0B Keyboard h and H 36 √ √ √ 4/101/104
12 0C Keyboard i and I 24 √ √ √ 4/101/104
13 0D Keyboard j and J 37 √ √ √ 4/101/104
14 0E Keyboard k and K 38 √ √ √ 4/101/104
15 0F Keyboard l and L 39 √ √ √ 4/101/104
16 10 Keyboard m and M4 52 √ √ √ 4/101/104
17 11 Keyboard n and N 51 √ √ √ 4/101/104
18 12 Keyboard o and O4 25 √ √ √ 4/101/104
19 13 Keyboard p and P4 26 √ √ √ 4/101/104
20 14 Keyboard q and Q4 17 √ √ √ 4/101/104
21 15 Keyboard r and R 20 √ √ √ 4/101/104
22 16 Keyboard s and S4 32 √ √ √ 4/101/104
23 17 Keyboard t and T 21 √ √ √ 4/101/104
24 18 Keyboard u and U 23 √ √ √ 4/101/104
25 19 Keyboard v and V 49 √ √ √ 4/101/104
26 1A Keyboard w and W4 18 √ √ √ 4/101/104
27 1B Keyboard x and X4 47 √ √ √ 4/101/104
28 1C Keyboard y and Y4 22 √ √ √ 4/101/104
29 1D Keyboard z and Z4 46 √ √ √ 4/101/104
30 1E Keyboard 1 and !4 2 √ √ √ 4/101/104
31 1F Keyboard 2 and @4 3 √ √ √ 4/101/104
32 20 Keyboard 3 and #4 4 √ √ √ 4/101/104
33 21 Keyboard 4 and $4 5 √ √ √ 4/101/104
34 22 Keyboard 5 and %4 6 √ √ √ 4/101/104
35 23 Keyboard 6 and ^4 7 √ √ √ 4/101/104
36 24 Keyboard 7 and &4 8 √ √ √ 4/101/104
37 25 Keyboard 8 and *4 9 √ √ √ 4/101/104
38 26 Keyboard 9 and (4 10 √ √ √ 4/101/104
39 27 Keyboard 0 and )4 11 √ √ √ 4/101/104
40 28 Keyboard Return (ENTER)5 43 √ √ √ 4/101/104
41 29 Keyboard ESCAPE 110 √ √ √ 4/101/104
42 2A Keyboard DELETE (Backspace)13 15 √ √ √ 4/101/104
43 2B Keyboard Tab 16 √ √ √ 4/101/104
44 2C Keyboard Spacebar 61 √ √ √ 4/101/104
45 2D Keyboard - and (underscore)4 12 √ √ √ 4/101/104
46 2E Keyboard = and +4 13 √ √ √ 4/101/104
47 2F Keyboard [ and {4 27 √ √ √ 4/101/104
48 30 Keyboard ] and }4 28 √ √ √ 4/101/104
49 31 Keyboard \ and | 29 √ √ √ 4/101/104
50 32 Keyboard Non-US # and ~2 42 √ √ √ 4/101/104
51 33 Keyboard ; and :4 40 √ √ √ 4/101/104
52 34 Keyboard ‘ and “4 41 √ √ √ 4/101/104
53 35 Keyboard Grave Accent and Tilde4 1 √ √ √ 4/101/104
54 36 Keyboard, and <4 53 √ √ √ 4/101/104
55 37 Keyboard . and >4 54 √ √ √ 4/101/104
56 38 Keyboard / and ?4 55 √ √ √ 4/101/104
57 39 Keyboard Caps Lock11 30 √ √ √ 4/101/104
58 3A Keyboard F1 112 √ √ √ 4/101/104
59 3B Keyboard F2 113 √ √ √ 4/101/104
60 3C Keyboard F3 114 √ √ √ 4/101/104

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。