Update: CC - Key Up - AR Football 3 (r5kzahijoq.js) 450 bytes modified

beta.r3js.org
Theunis Johannes Botha 2018-05-28 17:54:16 +02:00
parent ac33f2c38f
commit fe0a861c73
1 changed files with 27 additions and 2 deletions

View File

@ -2,6 +2,31 @@ if (!this.entityLoaded) {
return;
}
console.log(data);
if (data.keyCode === R3.System.Input.KEY_LEFT) {
R3.Event.Emit(
R3.Event.GAME_DATA,
{
type : 'look_left'
}
)
}
//@ sourceURL=keyDown.js
if (data.keyCode === R3.System.Input.KEY_RIGHT) {
R3.Event.Emit(
R3.Event.GAME_DATA,
{
type : 'look_right'
}
)
}
if (data.keyCode === R3.System.Input.KEY_UP) {
R3.Event.Emit(
R3.Event.GAME_DATA,
{
type : 'shoot_release'
}
)
}
//@ sourceURL=keyUp.js