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

Handle XR controller disconnect and session end #4206

Merged
merged 2 commits into from
Apr 29, 2021
Merged

Conversation

netpro2k
Copy link
Contributor

@netpro2k netpro2k commented Apr 29, 2021

Exiting VR mode in Oculus browser now ends the XR Session (without triggering a inputsourcechange or gamepaddisconnected event. This PR correctly handles the end event on session to clean up controllers form the input system.

Also fixes the handling for the inputsourcechange event to correctly handle devices being lost not just added (this can happen for example if a controller runs out of batteries).

fixes #4134
fixes #4196

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

Successfully merging this pull request may close these issues.

VR + WebGL2 not working on Oculus Quest 1 and 2
2 participants