From fe0a861c737ccb6b64e57b26eea1d2ad3c3bb999 Mon Sep 17 00:00:00 2001 From: Theunis Johannes Botha Date: Mon, 28 May 2018 17:54:16 +0200 Subject: [PATCH] Update: CC - Key Up - AR Football 3 (r5kzahijoq.js) 450 bytes modified --- r5kzahijoq.js | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/r5kzahijoq.js b/r5kzahijoq.js index b087bbc..c4c1b49 100644 --- a/r5kzahijoq.js +++ b/r5kzahijoq.js @@ -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 \ No newline at end of file +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 \ No newline at end of file