mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Comments and disable camera when switching
This commit is contained in:
parent
498ed4cbe8
commit
a795822919
1 changed files with 20 additions and 6 deletions
|
@ -187,12 +187,6 @@
|
|||
setDisplay(monitorShowsCameraView);
|
||||
}
|
||||
|
||||
function onHMDChanged(isHMDMode) {
|
||||
// Will also eventually enable disable app, camera, etc.
|
||||
setDisplay(monitorShowsCameraView);
|
||||
addOrRemoveButton(false, isHMDMode);
|
||||
}
|
||||
|
||||
//
|
||||
// Function Name: addOrRemoveButton()
|
||||
//
|
||||
|
@ -407,6 +401,26 @@
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Function Name: onHMDChanged()
|
||||
//
|
||||
// Relevant Variables:
|
||||
// None
|
||||
//
|
||||
// Arguments:
|
||||
// isHMDMode: "true" if HMD is on; "false" otherwise
|
||||
//
|
||||
// Description:
|
||||
// Called from C++ when HMD mode is changed
|
||||
//
|
||||
function onHMDChanged(isHMDMode) {
|
||||
setDisplay(monitorShowsCameraView);
|
||||
addOrRemoveButton(false, isHMDMode);
|
||||
if (!isHMDMode && !showSpectatorInDesktop) {
|
||||
spectatorCameraOff();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Function Name: shutdown()
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue