Skip to content

Commit

Permalink
bump v0.9.2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed May 6, 2019
1 parent 3089b68 commit fa14bda
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 37 deletions.
60 changes: 29 additions & 31 deletions dist/aframe-v0.9.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -74635,6 +74635,34 @@ module.exports.AScene = registerElement('a-scene', {
initMetaTags(this);
initWakelock(this);

// Handler to exit VR (e.g., Oculus Browser back button).
this.onVRPresentChangeBound = bind(this.onVRPresentChange, this);
window.addEventListener('vrdisplaypresentchange', this.onVRPresentChangeBound);

// Bind functions.
this.enterVRBound = function () { self.enterVR(); };
this.exitVRBound = function () { self.exitVR(); };
this.exitVRTrueBound = function () { self.exitVR(true); };
this.pointerRestrictedBound = function () { self.pointerRestricted(); };
this.pointerUnrestrictedBound = function () { self.pointerUnrestricted(); };

if (!isWebXRAvailable) {
// Exit VR on `vrdisplaydeactivate` (e.g. taking off Rift headset).
window.addEventListener('vrdisplaydeactivate', this.exitVRBound);

// Exit VR on `vrdisplaydisconnect` (e.g. unplugging Rift headset).
window.addEventListener('vrdisplaydisconnect', this.exitVRTrueBound);

// Register for mouse restricted events while in VR
// (e.g. mouse no longer available on desktop 2D view)
window.addEventListener('vrdisplaypointerrestricted', this.pointerRestrictedBound);

// Register for mouse unrestricted events while in VR
// (e.g. mouse once again available on desktop 2D view)
window.addEventListener('vrdisplaypointerunrestricted',
this.pointerUnrestrictedBound);
}

// Camera set up by camera system.
this.addEventListener('cameraready', function () {
self.attachedCallbackPostCamera();
Expand Down Expand Up @@ -74667,36 +74695,6 @@ module.exports.AScene = registerElement('a-scene', {

// Add to scene index.
scenes.push(this);

// Handler to exit VR (e.g., Oculus Browser back button).
this.onVRPresentChangeBound = bind(this.onVRPresentChange, this);
window.addEventListener('vrdisplaypresentchange', this.onVRPresentChangeBound);

// bind functions
this.enterVRBound = function () { self.enterVR(); };
this.exitVRBound = function () { self.exitVR(); };
this.exitVRTrueBound = function () { self.exitVR(true); };
this.pointerRestrictedBound = function () { self.pointerRestricted(); };
this.pointerUnrestrictedBound = function () { self.pointerUnrestricted(); };

if (!isWebXRAvailable) {
// Enter VR on `vrdisplayactivate` (e.g. putting on Rift headset).
window.addEventListener('vrdisplayactivate', this.enterVRBound);

// Exit VR on `vrdisplaydeactivate` (e.g. taking off Rift headset).
window.addEventListener('vrdisplaydeactivate', this.exitVRBound);

// Exit VR on `vrdisplaydisconnect` (e.g. unplugging Rift headset).
window.addEventListener('vrdisplaydisconnect', this.exitVRTrueBound);

// Register for mouse restricted events while in VR
// (e.g. mouse no longer available on desktop 2D view)
window.addEventListener('vrdisplaypointerrestricted', this.pointerRestrictedBound);

// Register for mouse unrestricted events while in VR
// (e.g. mouse once again available on desktop 2D view)
window.addEventListener('vrdisplaypointerunrestricted', this.pointerUnrestrictedBound);
}
},
writable: window.debug
},
Expand Down Expand Up @@ -77216,7 +77214,7 @@ _dereq_('./core/a-mixin');
_dereq_('./extras/components/');
_dereq_('./extras/primitives/');

console.log('A-Frame Version: 0.9.2 (Date 2019-05-06, Commit #a0182db)');
console.log('A-Frame Version: 0.9.2 (Date 2019-05-06, Commit #f57a1fa)');
console.log('three Version (https://github.com/supermedium/three.js):',
pkg.dependencies['super-three']);
console.log('WebVR Polyfill Version:', pkg.dependencies['webvr-polyfill']);
Expand Down
6 changes: 3 additions & 3 deletions dist/aframe-v0.9.2.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit fa14bda

Please sign in to comment.