From 46cbc349d15d7f103e4568abb42fa183f2e9f7d8 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 25 Nov 2015 16:39:09 +1300 Subject: [PATCH] Fix laserPointer.js for Hydras Leap Motion working already. --- examples/controllers/leap/laserPointer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/controllers/leap/laserPointer.js b/examples/controllers/leap/laserPointer.js index 156e9ba298..c8c3cf372a 100644 --- a/examples/controllers/leap/laserPointer.js +++ b/examples/controllers/leap/laserPointer.js @@ -23,7 +23,8 @@ var laserPointer = (function () { function isHandPointing(hand) { var MINIMUM_TRIGGER_PULL = 0.9; - return Controller.getTriggerValue(hand) > MINIMUM_TRIGGER_PULL; + var controller = hand === 0 ? Controller.Standard.LT : Controller.Standard.RT; + return Controller.getValue(controller) > MINIMUM_TRIGGER_PULL; } function isFingerPointing(hand) {