mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 01:47:31 +02:00
Stub dominant hand setting support
This commit is contained in:
parent
233655b76b
commit
44fe60ddda
1 changed files with 18 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue