From 1ce20d883ad944c1e1e8759e311117ed21d24639 Mon Sep 17 00:00:00 2001 From: Peter Ehrlich Date: Tue, 7 Oct 2014 20:23:48 -0700 Subject: [PATCH] Add optimizeHMD flag to oculus example --- v2/oculus/index.html | 2 +- v2/oculus/javascript/controller.coffee | 5 ++++- v2/oculus/javascript/controller.js | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/v2/oculus/index.html b/v2/oculus/index.html index 6149e42..e07eee6 100644 --- a/v2/oculus/index.html +++ b/v2/oculus/index.html @@ -5,7 +5,7 @@ - + diff --git a/v2/oculus/javascript/controller.coffee b/v2/oculus/javascript/controller.coffee index 42b4c4c..b261d24 100644 --- a/v2/oculus/javascript/controller.coffee +++ b/v2/oculus/javascript/controller.coffee @@ -1,4 +1,7 @@ -window.controller = controller = (new Leap.Controller({background: true})) +window.controller = controller = (new Leap.Controller({ + background: true + optimizeHMD: true +})) # this transforms the entire leap coordinate space # note the usage of Euler rotation, first around the Z axis to right the hand, diff --git a/v2/oculus/javascript/controller.js b/v2/oculus/javascript/controller.js index 02a49d8..ee2dc85 100644 --- a/v2/oculus/javascript/controller.js +++ b/v2/oculus/javascript/controller.js @@ -3,7 +3,8 @@ var controller, makeLight, positionLight, releaseLight; window.controller = controller = new Leap.Controller({ - background: true + background: true, + optimizeHMD: true }); controller.use('transform', {