From 5d949656ec600b78e0b2edd80cf48477df256fbb Mon Sep 17 00:00:00 2001 From: Garrett Finucane Date: Sun, 24 Aug 2014 13:04:27 -0400 Subject: [PATCH] made down key on hold --- js/input.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/input.js b/js/input.js index e968e53..d04e599 100644 --- a/js/input.js +++ b/js/input.js @@ -19,10 +19,12 @@ function addKeyListeners() { keypress.register_combo({ keys: "down", on_keydown: function() { - if(gameState==1){ - toggleRush(); - } + rush=2; + }, + on_release: function() { + rush=1; } + }); keypress.register_combo({