mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +02:00
7385 - Collect Stats on "Exit VR" button
This commit is contained in:
parent
8723ff2df2
commit
c0e7e5a8b2
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ function onHmdChanged(isHmd) {
|
||||||
function onClicked() {
|
function onClicked() {
|
||||||
var isDesktop = Menu.isOptionChecked(desktopMenuItemName);
|
var isDesktop = Menu.isOptionChecked(desktopMenuItemName);
|
||||||
Menu.setIsOptionChecked(isDesktop ? headset : desktopMenuItemName, true);
|
Menu.setIsOptionChecked(isDesktop ? headset : desktopMenuItemName, true);
|
||||||
|
if (!isDesktop) {
|
||||||
|
UserActivityLogger.logAction("exit_vr");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (headset) {
|
if (headset) {
|
||||||
|
|
Loading…
Reference in a new issue