New issue
Advanced search Search tips

Issue 913703 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug
Proj-VR
Proj-XR



Sign in to add a comment

XRSession's inputsourceschange event does not fire for 'screen' XRInputSource

Project Member Reported by jsant...@google.com, Dec 10

Issue description

A 'screen' XRInputSource should be created and exposed via a session's 'inputsourceschange' event before being found in the input sources. As per the spec:

> Note: Some input sources, like an XRInputSource with targetRayMode set to screen, will only be added to the session’s list of active input sources immediately before the selectstart event, and removed from the session’s list of active input sources immediately after the selectend event.

Currently, tapping the XRPresentationContext's canvas creates the appropriate XRInputSource in `session.getInputSources()` and removes it after no longer touching the canvas. In the case where only a select event is needed (not a controller's pose), listening to a 'inputsourceschange' event followed by an input's 'selectend' event would be sufficient. As a fallback/workaround, polling for input sources on every frame works.

Chrome Version: Chrome Canary 73.0.3632.4
OS: Android

 
Status: Available (was: Untriaged)

Sign in to add a comment