Stub dominant hand setting support

This commit is contained in:
David Rowe 2017-07-22 11:47:14 +12:00
parent 233655b76b
commit 44fe60ddda

View file

@ -18,11 +18,12 @@
tablet,
button,
VR_EDIT_SETTING = "io.highfidelity.isVREditing", // Note: This constant is duplicated in utils.js.
// Application state
isAppActive = false,
isAppScaleWithHandles = false,
VR_EDIT_SETTING = "io.highfidelity.isVREditing", // Note: This constant is duplicated in utils.js.
dominantHand,
editors = [],
LEFT_HAND = 0,
@ -825,6 +826,13 @@
}
}
function onDominantHandChanged() {
/*
// TODO: API coming.
dominantHand = TODO;
*/
}
function setUp() {
updateHandControllerGrab();
@ -851,6 +859,14 @@
editors[LEFT_HAND].setOtherEditor(editors[RIGHT_HAND]);
editors[RIGHT_HAND].setOtherEditor(editors[LEFT_HAND]);
// Dominant hand from settings.
// TODO: API coming.
dominantHand = RIGHT_HAND;
/*
dominantHand = TODO;
TODO.change.connect(onDominantHandChanged);
*/
if (isAppActive) {
update();
}