Skip to content

Commit 7a810c1

Browse files
author
Avaer Kazmer
committed
Add window vm on xr mode event tracking
1 parent b4f30d7 commit 7a810c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/WindowVm.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ const _makeWindow = (options = {}, handlers = {}) => {
194194
window.on('framebuffer', e => {
195195
window.framebuffer = e;
196196
});
197+
window.on('xrMode', e => {
198+
options.onxrmode && options.onxrmode(e);
199+
});
197200
window.on('hapticPulse', e => {
198201
options.onhapticpulse && options.onhapticpulse(e);
199202
});

0 commit comments

Comments
 (0)