WebVR-Extension icon indicating copy to clipboard operation
WebVR-Extension copied to clipboard

VRDisplayEvent implementation

Open ygilquin-gpsw opened this issue 9 years ago • 1 comments

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.

ygilquin-gpsw avatar Sep 14 '16 09:09 ygilquin-gpsw

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...

spite avatar Sep 14 '16 12:09 spite