Comments and disable camera when switching

This commit is contained in:
Zach Fox 2017-06-14 17:12:37 -07:00
parent 498ed4cbe8
commit a795822919

View file

@ -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()
//