forked from jaggedsoft/FullScreenMario
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.js
44 lines (44 loc) · 2.08 KB
/
input.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
FullScreenMario.FullScreenMario.settings.input = {
"InputWritrArgs": {
"aliases": {
// Keyboard aliases
"left": [65, 37], // a, left
"right": [68, 39], // d, right
"up": [87, 38, 32], // w, up, space
"down": [83, 40], // s, down
"sprint": [16, 17], // shift, ctrl
"pause": [80], // p (pause)
// Mute and Luigi disabled because there's a GUI for them now
// "mute": [77], // m (mute)
// "l": [76], // l (luigi)
// Mouse aliases
"rightclick": [3],
},
"triggers": {
"onkeydown": {
"left": FullScreenMario.FullScreenMario.prototype.keyDownLeft,
"right": FullScreenMario.FullScreenMario.prototype.keyDownRight,
"up": FullScreenMario.FullScreenMario.prototype.keyDownUp,
"down": FullScreenMario.FullScreenMario.prototype.keyDownDown,
"sprint": FullScreenMario.FullScreenMario.prototype.keyDownSprint,
"pause": FullScreenMario.FullScreenMario.prototype.keyDownPause,
"mute": FullScreenMario.FullScreenMario.prototype.keyDownMute,
},
"onkeyup": {
"left": FullScreenMario.FullScreenMario.prototype.keyUpLeft,
"right": FullScreenMario.FullScreenMario.prototype.keyUpRight,
"up": FullScreenMario.FullScreenMario.prototype.keyUpUp,
"down": FullScreenMario.FullScreenMario.prototype.keyUpDown,
"sprint": FullScreenMario.FullScreenMario.prototype.keyUpSprint,
"pause": FullScreenMario.FullScreenMario.prototype.keyUpPause
},
"onmousedown": {
"rightclick": FullScreenMario.FullScreenMario.prototype.mouseDownRight
},
"oncontextmenu": {},
"ondevicemotion": {
"devicemotion": FullScreenMario.FullScreenMario.prototype.deviceMotion
}
}
}
};