repo: janusweb action: commit revision: path_from: revision_from: 844bcfc301f12cd2687dbb9bf3f49053f76adcff: path_to: revision_to:
commit 844bcfc301f12cd2687dbb9bf3f49053f76adcff Author: James BaicoianuDate: 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
--- 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-----