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, tablet,
button, button,
VR_EDIT_SETTING = "io.highfidelity.isVREditing", // Note: This constant is duplicated in utils.js.
// Application state // Application state
isAppActive = false, isAppActive = false,
isAppScaleWithHandles = false, isAppScaleWithHandles = false,
dominantHand,
VR_EDIT_SETTING = "io.highfidelity.isVREditing", // Note: This constant is duplicated in utils.js.
editors = [], editors = [],
LEFT_HAND = 0, LEFT_HAND = 0,
@ -825,6 +826,13 @@
} }
} }
function onDominantHandChanged() {
/*
// TODO: API coming.
dominantHand = TODO;
*/
}
function setUp() { function setUp() {
updateHandControllerGrab(); updateHandControllerGrab();
@ -851,6 +859,14 @@
editors[LEFT_HAND].setOtherEditor(editors[RIGHT_HAND]); editors[LEFT_HAND].setOtherEditor(editors[RIGHT_HAND]);
editors[RIGHT_HAND].setOtherEditor(editors[LEFT_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) { if (isAppActive) {
update(); update();
} }