WebVR-Extension
WebVR-Extension copied to clipboard
VRDisplayEvent implementation
VRDisplayEvent received when onvrdisplaypresentchange is triggered should have a display property pointing on the VRDisplay instance.
From the spec
interface VRDisplayEvent : Event {
readonly attribute VRDisplay display;
readonly attribute VRDisplayEventReason? reason;
};
This would be a great addition. Thanks.
Should be fixed with this https://github.com/spite/WebVR-Extension/commit/4655fdfd2af3d5eaabec9495d25bbc9d670c0c25 but I don't see an easy way to properly mimick VRDisplayEvent with CustomEvents. I hope nobody tries to check the event typeof...