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({