From 87e7dd9ce3088c79bd91e7d19c4be27e7122f983 Mon Sep 17 00:00:00 2001 From: PhilipRosedale Date: Fri, 4 Mar 2016 16:16:05 -0800 Subject: [PATCH] add vive button mapping --- examples/controllers/handControllerMouse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/controllers/handControllerMouse.js b/examples/controllers/handControllerMouse.js index 8807fb9794..e53fc34df1 100644 --- a/examples/controllers/handControllerMouse.js +++ b/examples/controllers/handControllerMouse.js @@ -10,7 +10,6 @@ // var DEBUGGING = false; - var angularVelocityTrailingAverage = 0.0; // Global trailing average used to decide whether to move reticle at all var lastX = 0; var lastY = 0; @@ -39,6 +38,10 @@ if (Controller.Hardware.Hydra !== undefined) { mapping.from(Controller.Hardware.Hydra.L3).peek().to(Controller.Actions.ReticleClick); mapping.from(Controller.Hardware.Hydra.R4).peek().to(Controller.Actions.ReticleClick); } +if (Controller.Hardware.Vive !== undefined) { + mapping.from(Controller.Hardware.Vive.LeftPrimaryThumb).peek().to(Controller.Actions.ReticleClick); + mapping.from(Controller.Hardware.Vive.RightPrimaryThumb).peek().to(Controller.Actions.ReticleClick); +} mapping.enable();