-
Notifications
You must be signed in to change notification settings - Fork 13
/
Keys.py
73 lines (65 loc) · 1.37 KB
/
Keys.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
70
71
72
73
#!/usr/bin/python
"""
This is a class that stores the coordinates of the keys on osk.png.
Author: Alvin Lin ([email protected])
Contributor: Jonathan Stoebe
"""
class Keys():
# Coordinates of the keys on osk.png
key = {
'1' : [190, 55],
'2' : [260, 55],
'3' : [330, 55],
'4' : [400, 55],
'5' : [470, 55],
'6' : [545, 55],
'7' : [625, 55],
'8' : [700, 55],
'9' : [770, 55],
'0' : [845, 55],
'q' : [150, 85],
'w' : [225, 85],
'e' : [300, 85],
'r' : [360, 85],
't' : [445, 85],
'y' : [510, 85],
'u' : [585, 85],
'i' : [650, 85],
'o' : [730, 85],
'p' : [805, 85],
'a' : [190, 120],
's' : [260, 120],
'd' : [330, 120],
'f' : [400, 120],
'g' : [470, 120],
'h' : [545, 120],
'j' : [625, 120],
'k' : [700, 120],
'l' : [770, 120],
'z' : [225, 150],
'x' : [300, 150],
'c' : [360, 150],
'v' : [445, 150],
'b' : [510, 150],
'n' : [585, 150],
'm' : [650, 150],
'.' : [805, 150],
' ' : [480, 185],
'BACKSP' : [1080, 55],
'ENTER' : [1050, 120],
'LSHIFT' : [90, 150],
'CTRL' : [115, 185],
'INS' : [1180, 125],
'DEL' : [1100, 85],
'END' : [1185, 85],
'RIGHT' : [1030, 185],
'LEFT' : [880, 185],
'UP' : [950, 150],
'DOWN' : [950, 185],
'PGUP' : [1250, 55],
'PGDN' : [1250, 90],
'HOME' : [1180, 55],
'END' : [1180, 90],
'ALT' : [260, 185],
'PRTSCN': [1180,150]
}