-
Notifications
You must be signed in to change notification settings - Fork 2
/
keyboard.py
69 lines (69 loc) · 1.28 KB
/
keyboard.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
keycodes = {
8: 14, # BS / BACKSPACE
9: 15, # TAB
13: 28, # ENTER
17: 29, # L_CTRL
16: 42, # L_SHIFT
18: 56, # L_ALT
27: 1, # ESCAPE
32: 57, # space
37: 105, # left
38: 103, # up
39: 106, # right
40: 108, # down
46: 83, # delete
48: 11, # 0
49: 2, # 1
50: 3, # 2
51: 4, # 3
52: 5, # 4
53: 6, # 5
54: 7, # 6
55: 8, # 7
56: 9, # 8
57: 10, # 9
65: 30, # A
66: 48, # B
67: 46, # C
68: 32, # D
69: 18, # E
70: 33, # F
71: 34, # G
72: 35, # H
73: 23, # I
74: 36, # J
75: 37, # K
76: 38, # L
77: 50, # M
78: 49, # N
79: 24, # O
80: 25, # P
81: 16, # Q
82: 19, # R
83: 31, # S
84: 20, # T
85: 22, # U
86: 47, # V
87: 17, # W
88: 45, # X
89: 21, # Y
90: 44, # Z
91: 125, # SUPER_L
92: 126, # SUPER_R
112: 59, # F1
113: 60, # F2
114: 61, # F3
115: 62, # F4
116: 63, # F5
117: 64, # F6
118: 65, # F7
119: 66, # F8
120: 67, # F9
121: 68, # F10
122: 87, # F11
123: 88, # F12
186: 39, # ;
189: 12, # -
190: 52, # .
191: 53, # /
}