mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 10:43:13 +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,
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue