From 26576fa760bbce30a577e232c7573ba14686115b Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sat, 18 Aug 2018 09:34:16 +1200 Subject: [PATCH] Fix Vive left/right buttons not disabling teleport --- scripts/system/controllers/controllerModules/teleport.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/system/controllers/controllerModules/teleport.js b/scripts/system/controllers/controllerModules/teleport.js index 05d90dde72..db95f6b09b 100644 --- a/scripts/system/controllers/controllerModules/teleport.js +++ b/scripts/system/controllers/controllerModules/teleport.js @@ -116,7 +116,6 @@ Script.include("/~/system/libraries/controllers.js"); function Teleporter(hand) { var _this = this; this.hand = hand; - this.buttonValue = 0; this.disabled = false; // used by the 'Hifi-Teleport-Disabler' message handler this.active = false; @@ -197,7 +196,7 @@ Script.include("/~/system/libraries/controllers.js"); this.axisButtonChangeX = function (value) { if (value !== 0) { - _this.buttonStateX = value; + _this.axisButtonStateX = value; } else { // Delay direction button release until after teleport possibly pressed. Script.setTimeout(function () {