From e562ea197b085a8ea70057f923b99ce0dfcd4e0c Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 30 May 2017 13:49:17 -0700 Subject: [PATCH] Rename CAPTURED_KEYS to KEYS in gracefulControls.js --- script-archive/gracefulControls.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script-archive/gracefulControls.js b/script-archive/gracefulControls.js index 85e12d740c..982eb6cefa 100644 --- a/script-archive/gracefulControls.js +++ b/script-archive/gracefulControls.js @@ -52,11 +52,11 @@ var KEY_UP = "E"; var KEY_DOWN = "C"; var KEY_TOGGLE= "Space"; -var CAPTURED_KEYS; +var KEYS; if (DRIVE_AVATAR_ENABLED) { - CAPTURED_KEYS = [KEY_TOGGLE, KEY_BRAKE, KEY_FORWARD, KEY_BACKWARD, KEY_LEFT, KEY_RIGHT, KEY_UP, KEY_DOWN]; + KEYS = [KEY_TOGGLE, KEY_BRAKE, KEY_FORWARD, KEY_BACKWARD, KEY_LEFT, KEY_RIGHT, KEY_UP, KEY_DOWN]; } else { - CAPTURED_KEYS = [KEY_TOGGLE]; + KEYS = [KEY_TOGGLE]; } // Global Variables @@ -258,8 +258,8 @@ function onKeyPress(key, value) { } } -for (var i = 0; i < CAPTURED_KEYS.length; ++i) { - var key = CAPTURED_KEYS[i]; +for (var i = 0; i < KEYS.length; ++i) { + var key = KEYS[i]; var hw = Controller.Hardware.Keyboard[key]; if (hw) { controllerMapping.from(hw).to(function(key) {