forked from selzoc/Tar-Heel-Typer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bindings.js
64 lines (62 loc) · 1.68 KB
/
bindings.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
// This file contains the objects that bind keystrokes to messages
// Keymappings for non-character keycodes
var keyMappings = {
13: "enter",
16: "shift",
32: "space",
37: "left arrow",
38: "up arrow",
39: "right arrow",
40: "down arrow",
186: "semicolon",
187: "equals",
188: "comma",
189: "minus",
190: "period",
191: "front slash",
192: "back tic",
219: "left bracket",
220: "back slash",
221: "right bracket",
222: "quote"
};
// Free mode bindings
var freeModeBindings = {
// Doesn't pronounce "a" correctly
A: ["A: airplane", "sounds/airplane"],
B: ["B: bell", "sounds/bell"],
C: ["C: cat", "sounds/cat"],
D: ["D: dog", "sounds/dog"],
E: ["E: elephant", "sounds/elephant"],
F: ["F: frog", "sounds/frog"],
G: ["G: goat", "sounds/goat"],
H: ["H: hammer", "sounds/hammer"],
I: ["I: ice", "sounds/ice"],
J: ["J: jungle", "sounds/jungle"],
K: ["K: keys", "sounds/keys"],
L: ["L: lion", "sounds/lion"],
M: ["M: mosquito", "sounds/mosquito"],
N: ["N: neigh", "sounds/neigh"],
O: ["O: owl", "sounds/owl"],
P: ["P: pig", "sounds/pig"],
Q: ["Q: quack", "sounds/quack"],
R: ["R: rooster", "sounds/rooster"],
S: ["S: sheep", "sounds/sheep"],
T: ["T: thunder", "sounds/thunder"],
U: ["U: ukulele", "sounds/ukulele"],
V: ["V: vacuum cleaner", "sounds/vacuum"],
W: ["W: whistle", "sounds/whistle"],
X: ["X: xylophone", "sounds/xylophone"],
Y: ["Y: yell", "sounds/yell"],
Z: ["Z: zipper", "sounds/zipper"],
0: ["0: nothing here!"],
1: ["1: partridge in a pear tree"],
2: ["2: turtle doves"],
3: ["3: french hens"],
4: ["4: colly birds"],
5: ["5: golden rings"],
6: ["6: geese a-laying"],
7: ["7: swans a-swimming"],
8: ["8: maids a-milking"],
9: ["9: ladies dancing"]
};