From 4f899d875288e0b5e9b3dd8af4b4e14c8e242e3c Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Fri, 8 Jul 2016 15:14:04 -0700 Subject: [PATCH] play nice with grab --- scripts/system/controllers/handControllerGrab.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index a2738396b6..a7a897aa7f 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -772,7 +772,6 @@ function MyController(hand) { this.searchSphereOff = function() { if (this.searchSphere !== null) { - print('removing search sphere' + this.searchSphere) Overlays.deleteOverlay(this.searchSphere); this.searchSphere = null; this.searchSphereDistance = DEFAULT_SEARCH_SPHERE_DISTANCE; @@ -2302,8 +2301,8 @@ mapping.from([Controller.Standard.LB]).peek().to(leftController.secondaryPress); mapping.from([Controller.Standard.LeftGrip]).peek().to(leftController.secondaryPress); mapping.from([Controller.Standard.RightGrip]).peek().to(rightController.secondaryPress); -// mapping.from([Controller.Standard.LeftPrimaryThumb]).peek().to(leftController.thumbPress); -// mapping.from([Controller.Standard.RightPrimaryThumb]).peek().to(rightController.thumbPress); +mapping.from([Controller.Standard.LeftPrimaryThumb]).peek().to(leftController.thumbPress); +mapping.from([Controller.Standard.RightPrimaryThumb]).peek().to(rightController.thumbPress); Controller.enableMapping(MAPPING_NAME); @@ -2339,12 +2338,11 @@ var handleHandMessages = function(channel, message, sender) { handToDisable = RIGHT_HAND; } if (message === "both") { - print('disable both') leftController.turnOffVisualizations('left'); rightController.turnOffVisualizations('right'); } if (message === 'both' || message === 'none') { - // handToDisable = message; + handToDisable = message; } } else if (channel === 'Hifi-Hand-Grab') { try {