Skip to content

Handle controller sources in XRSession.trackedSources - #5862

Open
dajiaohuang wants to merge 1 commit into
aframevr:masterfrom
dajiaohuang:fix/tracked-sources-in-tracked-controls
Open

dajiaohuang wants to merge 1 commit into
aframevr:masterfrom
dajiaohuang:fix/tracked-sources-in-tracked-controls

Conversation

@dajiaohuang

Copy link
Copy Markdown

Description:
Fix tracked-controls losing a controller when WebXR moves it from inputSources to trackedSources (fixes #5856).

Changes proposed:

  • Preserve inputSources ordering and append only tracked sources with controller profiles, gamepad, grip space, and target-ray space.
  • Add synthetic regression coverage for the migration, candidate preference, unavailable trackedSources, and hand-only sources.

Focused validation: TEST_FILE=tracked-controls npm test -- --browsers ChromeHeadless --single-run (10 passed); standardx on changed files; git diff --check.

This branch has not been deployed

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

Quest WebXR: tracked-controls reports false controller disconnects when a Touch source moves to trackedSources

1 participant