This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
keys.js
104 lines (98 loc) · 1.88 KB
/
keys.js
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
(function() {
var raw_keys = [
42,143,93,93,"q",
135,143,93,93,"w",
228,143,93,93,"e",
321,143,93,93,"r",
414,143,93,93,"t",
507,143,93,93,"y",
600,143,93,93,"u",
693,143,93,93,"i",
786,143,93,93,"o",
879,143,93,93,"p",
42,236,132,86,"a",
174,236,92,86,"s",
266,236,92,86,"d",
358,236,92,86,"f",
450,236,92,86,"g",
542,236,92,86,"h",
634,236,92,86,"j",
726,236,92,86,"k",
818,236,132,86,"l",
93,322,132,86,"z",
224,322,91,86,"x",
315,322,91,86,"c",
406,322,91,86,"v",
497,322,90,86,"b",
587,322,90,86,"n",
677,322,90,86,"m",
767,322,90,86,",",
857,322,90,86,".",
267,408,545,90," "
];
var raw_keys_sym = [
42,38,93,105,"1",
135,38,93,105,"2",
228,38,93,105,"3",
321,38,93,105,"4",
414,38,93,105,"5",
507,38,93,105,"6",
600,38,93,105,"7",
693,38,93,105,"8",
786,38,93,105,"9",
879,38,93,105,"0",
42,143,93,93,"!",
135,143,93,93,"@",
228,143,93,93,"#",
321,143,93,93,"$",
414,143,93,93,"%",
507,143,93,93,"^",
600,143,93,93,"&",
693,143,93,93,"*",
786,143,93,93,"(",
879,143,93,93,")",
42,236,132,86,"`",
174,236,92,86,"~",
266,236,92,86,"<",
358,236,92,86,">",
450,236,92,86,"{",
542,236,92,86,"}",
634,236,92,86,"[",
726,236,92,86,"]",
818,236,132,86,"\\",
93,322,132,86,"'",
224,322,91,86,'"',
315,322,91,86,":",
406,322,91,86,";",
497,322,90,86,"=",
587,322,90,86,"-",
677,322,90,86,"+",
767,322,90,86,"?",
857,322,90,86,"/",
267,408,545,90," "
];
var keys = [];
for(var i = 0; i<raw_keys.length; i+=5) {
var key_info = {
x : raw_keys[i]
, y : raw_keys[i+1]
, width : raw_keys[i+2]
, height : raw_keys[i+3]
, key : raw_keys[i+4]
};
keys.push(key_info);
}
window.keys = keys;
var keys_sym = [];
for(var i = 0; i<raw_keys_sym.length; i+=5) {
var key_info = {
x : raw_keys_sym[i]
, y : raw_keys_sym[i+1]
, width : raw_keys_sym[i+2]
, height : raw_keys_sym[i+3]
, key : raw_keys_sym[i+4]
};
keys_sym.push(key_info);
}
window.keys_sym = keys_sym;
}());