From f8ff40bc7d3db4a42eee721d1b408986e12bfd6b Mon Sep 17 00:00:00 2001 From: Theunis Johannes Botha Date: Mon, 28 May 2018 21:09:57 +0200 Subject: [PATCH] Initial Commit: CC - Key Up - AR Football 3 (xlq24tbwpo.js) --- xlq24tbwpo.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 xlq24tbwpo.js diff --git a/xlq24tbwpo.js b/xlq24tbwpo.js new file mode 100644 index 0000000..0c9a0ce --- /dev/null +++ b/xlq24tbwpo.js @@ -0,0 +1,32 @@ +if (!this.entityLoaded) { + return; +} + +if (data.keyCode === R3.System.Input.KEY_LEFT) { + R3.Event.Emit( + R3.Event.GAME_DATA, + { + type : 'left_release' + } + ) +} + +if (data.keyCode === R3.System.Input.KEY_RIGHT) { + R3.Event.Emit( + R3.Event.GAME_DATA, + { + type : 'right_release' + } + ) +} + +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