repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 844bcfc301f12cd2687dbb9bf3f49053f76adcff:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 844bcfc301f12cd2687dbb9bf3f49053f76adcff
Author: James Baicoianu 
Date:   Wed Oct 28 14:34:57 2020 -0700

    Don't re-enable player cursor if user is in VR

diff --git a/scripts/room.js b/scripts/room.js
index 786457d9c8d5d89bd5fddeb93844934848672cb0..
index ..baad79c5baca91192b0795cc26b1a202ba9e037a 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -226,7 +226,7 @@ elation.require([
       //player.reset_position();
       player.properties.movestrength = 80 * this.properties.walk_speed;
       player.properties.runstrength = 80 * this.properties.run_speed;
-      player.cursor_visible = elation.utils.any(this.cursor_visible, true);
+      player.cursor_visible = (!janus.hmd ? elation.utils.any(this.cursor_visible, true) : false);
       player.cursor_opacity = 1;
       // FIXME - for some reason the above call sometimes orients the player backwards.  Doing it on a delay fixes it...
       //setTimeout(elation.bind(player, player.reset_position), 0);

-----END OF PAGE-----