You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -533,6 +533,7 @@ The <dfn dict-member for="XRSessionInit">optionalFeatures</dfn> array contains a
533
533
Values given in the feature lists are considered a valid <dfn>feature descriptor</dfn> if the value is one of the following:
534
534
535
535
- The string representation of any {{XRReferenceSpaceType}} enum value
536
+
- The string "<dfn for="feature descriptor">tracked-sources</dfn>"
536
537
537
538
Future iterations of this specification and additional modules may expand the list of accepted [=feature descriptors=].
538
539
@@ -837,7 +838,7 @@ Each {{XRSession}} has an <dfn for="XRSession">XR device</dfn>, which is an [=/X
837
838
838
839
The <dfn attribute for="XRSession">inputSources</dfn> attribute returns the {{XRSession}}'s [=list of active XR input sources=].
839
840
840
-
The <dfn attribute for="XRSession">trackedSources</dfn> attribute returns the {{XRSession}}'s [=list of active XR tracked sources=].
841
+
The <dfn attribute for="XRSession">trackedSources</dfn> attribute returns the {{XRSession}}'s [=list of active XR tracked sources=]. The [=list of active XR tracked sources=] MUST only be populated if {{feature descriptor/"tracked-sources"}} is included in the [=XRSession/set of granted features=].
841
842
842
843
The user agent MUST monitor any [=XR input source=]s associated with the [=XRSession/XR device=], including detecting when [=XR input source=]s are added, removed, or changed.
843
844
@@ -858,7 +859,7 @@ When <dfn for="XRSession" lt="add input source">new [=XR input source=]s become
858
859
: If |inputSource| is a [=primary input source=]:
859
860
::
860
861
Add |inputSource| to |added primary sources|.
861
-
: Otherwise:
862
+
: Otherwise, if {{feature descriptor/"tracked-sources"}} is included in |session|'s [=XRSession/set of granted features=]:
862
863
::
863
864
Add |inputSource| to |added tracked sources|.
864
865
</dl>
@@ -883,7 +884,7 @@ When any previously added <dfn for="XRSession" lt="remove input source">[=XR inp
883
884
: If |inputSource| is a [=primary input source=]:
884
885
::
885
886
Add |inputSource| to |removed primary sources|.
886
-
: Otherwise:
887
+
: Otherwise, if {{feature descriptor/"tracked-sources"}} is included in |session|'s [=XRSession/set of granted features=]:
887
888
::
888
889
Add |inputSource| to |removed tracked sources|.
889
890
</dl>
@@ -912,7 +913,7 @@ When the <dfn for="XRSession" export lt="change input source">{{XRInputSource/ha
912
913
: If |oldInputSource| is a [=primary input source=] or its state changed from a [=primary input source=] to [=tracked input source=] a:
913
914
::
914
915
Add |oldInputSource| to |removed primary sources|.
915
-
: Otherwise:
916
+
: Otherwise, if {{feature descriptor/"tracked-sources"}} is included in |session|'s [=XRSession/set of granted features=]:
916
917
::
917
918
Add |oldInputSource| to |removed tracked sources|.
918
919
</dl>
@@ -921,7 +922,7 @@ When the <dfn for="XRSession" export lt="change input source">{{XRInputSource/ha
921
922
: If |newInputSource| is a [=primary input source=] or its state changed from a [=tracked input source=] to [=primary input source=] :
922
923
::
923
924
Add |newInputSource| to |added primary sources|.
924
-
: Otherwise:
925
+
: Otherwise, if {{feature descriptor/"tracked-sources"}} is included in |session|'s [=XRSession/set of granted features=]:
925
926
::
926
927
Add |newInputSource| to |added tracked sources|.
927
928
</dl>
@@ -2653,7 +2654,7 @@ A user agent MUST [=fire an event=] named <dfn event for="XRSession">end</dfn> u
2653
2654
2654
2655
A user agent MUST [=fire an event=] named <dfn event for="XRSession">inputsourceschange</dfn> using {{XRInputSourcesChangeEvent}} on an {{XRSession}} when the session's [=list of active XR input sources=] has changed.
2655
2656
2656
-
A user agent MUST [=fire an event=] named <dfn event for="XRSession">trackedsourceschange</dfn> using {{XRInputSourcesChangeEvent}} on an {{XRSession}} when the session's [=list of active XR tracked sources=] has changed.
2657
+
A user agent MUST [=fire an event=] named <dfn event for="XRSession">trackedsourceschange</dfn> using {{XRInputSourcesChangeEvent}} on an {{XRSession}} when the session's [=list of active XR tracked sources=] has changed. This event MUST only be fired if {{feature descriptor/"tracked-sources"}} is included in the session's [=XRSession/set of granted features=].
2657
2658
2658
2659
A user agent MUST [=fire an event=] named <dfn event for="XRSession">selectstart</dfn> using {{XRInputSourceEvent}} on an {{XRSession}} when one of its {{XRInputSource}}s begins its [=primary action=]. The event MUST be of type .
0 commit comments