Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should vrdisplayactivate and vrdisplayactivate be consolidated to single event? #111

Closed
cvan opened this issue Oct 13, 2016 · 1 comment
Closed

Comments

@cvan
Copy link
Contributor

cvan commented Oct 13, 2016

Per https://w3c.github.io/webvr/#window-vrdisplayactivate-event:

onvrdisplayactivate** A user agent MAY dispatch this event type to indicate that something has occured which suggests the VRDisplay should be presented to. For example, if the VRDisplay is capable of detecting when the user has put it on, this event SHOULD fire when they do so with the reason "mounted".

Per https://w3c.github.io/webvr/#window-vrdisplaydeactivate-event:

onvrdisplaydeactivate A user agent MAY dispatch this event type to indicate that something has occured which suggests the VRDisplay should exit presentation. For example, if the VRDisplay is capable of detecting when the user has taken it off, this event SHOULD fire when they do so with the reason "unmounted".

À la vrdisplaypresentchange, perhaps there should instead be a single event called vrdisplaymountchange?

And, in the veins of #109, perhaps vrdisplaymounterror as well? Though, I'm not sure when that would be fire, to be honest. Maybe like if there's a VR display connected but it times out on mounting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants