-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkb_map.py
43 lines (43 loc) · 938 Bytes
/
kb_map.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
keymap = dict()
#Numbers
keymap['1'] = chr(30)
keymap['2'] = chr(31)
keymap['3'] = chr(32)
keymap['4'] = chr(33)
keymap['5'] = chr(34)
keymap['6'] = chr(35)
keymap['7'] = chr(36)
keymap['8'] = chr(37)
keymap['9'] = chr(38)
keymap['0'] = chr(39)
#Chars
keymap['a'] = chr(4)
keymap['b'] = chr(5)
keymap['c'] = chr(6)
keymap['d'] = chr(7)
keymap['e'] = chr(8)
keymap['f'] = chr(9)
keymap['g'] = chr(10)
keymap['h'] = chr(11)
keymap['i'] = chr(12)
keymap['j'] = chr(13)
keymap['k'] = chr(14)
keymap['l'] = chr(15)
keymap['m'] = chr(16)
keymap['n'] = chr(17)
keymap['o'] = chr(18)
keymap['p'] = chr(19)
keymap['q'] = chr(20)
keymap['r'] = chr(21)
keymap['s'] = chr(22)
keymap['t'] = chr(23)
keymap['u'] = chr(24)
keymap['v'] = chr(25)
keymap['w'] = chr(26)
keymap['x'] = chr(27)
keymap['y'] = chr(28)
keymap['z'] = chr(29)
#Other chars
keymap[' '] = chr(44)
keymap[','] = chr(54)
keymap['.'] = chr(55)