Files

44 lines
2.2 KiB
JavaScript
Raw Permalink Normal View History

2015-07-07 06:42:40 -07:00
FullScreenPokemon.FullScreenPokemon.settings.input = {
2015-01-01 20:06:27 -05:00
"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
2015-03-31 02:52:50 -04:00
"a": [90, 13], // z, enter
"b": [88, 8], // x, backspace
2015-03-31 20:02:52 -04:00
"pause": [80, 17], // p, ctrl
2015-01-01 20:06:27 -05:00
// Mouse aliases
"rightclick": [3],
},
"triggers": {
"onkeydown": {
2015-07-07 06:42:40 -07:00
"left": FullScreenPokemon.FullScreenPokemon.prototype.keyDownLeft,
"right": FullScreenPokemon.FullScreenPokemon.prototype.keyDownRight,
"up": FullScreenPokemon.FullScreenPokemon.prototype.keyDownUp,
"down": FullScreenPokemon.FullScreenPokemon.prototype.keyDownDown,
"a": FullScreenPokemon.FullScreenPokemon.prototype.keyDownA,
"b": FullScreenPokemon.FullScreenPokemon.prototype.keyDownB,
"pause": FullScreenPokemon.FullScreenPokemon.prototype.togglePauseMenu,
"mute": FullScreenPokemon.FullScreenPokemon.prototype.keyDownMute,
2015-01-01 20:06:27 -05:00
},
"onkeyup": {
2015-07-07 06:42:40 -07:00
"left": FullScreenPokemon.FullScreenPokemon.prototype.keyUpLeft,
"right": FullScreenPokemon.FullScreenPokemon.prototype.keyUpRight,
"up": FullScreenPokemon.FullScreenPokemon.prototype.keyUpUp,
"down": FullScreenPokemon.FullScreenPokemon.prototype.keyUpDown,
"a": FullScreenPokemon.FullScreenPokemon.prototype.keyUpA,
"b": FullScreenPokemon.FullScreenPokemon.prototype.keyUpB,
"pause": FullScreenPokemon.FullScreenPokemon.prototype.keyUpPause
2015-01-01 20:06:27 -05:00
},
"onmousedown": {
2015-07-07 06:42:40 -07:00
"rightclick": FullScreenPokemon.FullScreenPokemon.prototype.mouseDownRight
2015-01-01 20:06:27 -05:00
},
"oncontextmenu": {},
"ondevicemotion": {
2015-07-07 06:42:40 -07:00
//"devicemotion": FullScreenPokemon.FullScreenPokemon.prototype.deviceMotion
2015-01-01 20:06:27 -05:00
}
}
}
};