Skip to content
Snippets Groups Projects
Commit 22049c93 authored by netpro2k's avatar netpro2k
Browse files

Add back in hack to call getVRDisplays on enter

parent 3cbefadc
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,9 @@ export default class SceneEntryManager {
}
if (enterInVR) {
// HACK - A-Frame calls getVRDisplays at module load, we want to do it here to
// force gamepads to become live.
navigator.getVRDisplays();
this.scene.enterVR();
} else if (AFRAME.utils.device.isMobile()) {
document.body.addEventListener("touchend", requestFullscreen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment