Closed RogueSheep-nl closed 8 years ago
Feeling kinda noobish here as I'm not quite familiar with custom events. How do I listen for the 'modechange' event issues by the vrManager? I've tried: [document|window].addEventListener('modechange', myFunc, false);
[document|window].addEventListener('modechange', myFunc, false);
Thanks for any pointers in the right direction.
The manager itself issues this event. You can observe it by calling webVRManagerInstance.on('modechange', myFunc).
webVRManagerInstance.on('modechange', myFunc)
Thanks!
Feeling kinda noobish here as I'm not quite familiar with custom events. How do I listen for the 'modechange' event issues by the vrManager? I've tried:
[document|window].addEventListener('modechange', myFunc, false);
Thanks for any pointers in the right direction.