Skip to content

Commit a37e250

Browse files
committed
Changed XRHandedness enum to use 'none' instead of ''
1 parent e954353 commit a37e250

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ An {{XRInputSource}} represents any input mechanism which allows the user to per
10401040

10411041
<pre class="idl">
10421042
enum XRHandedness {
1043-
"",
1043+
"none",
10441044
"left",
10451045
"right"
10461046
};
@@ -1062,7 +1062,7 @@ interface XRInputSource {
10621062

10631063
Each {{XRInputSource}} SHOULD define a <dfn>primary action</dfn>. The [=primary action=] is a platform-specific action that, when engaged, produces {{selectstart}}, {{selectend}}, and {{XRSession/select}} events. Examples of possible [=primary action=]s are pressing a trigger, touchpad, or button, speaking a command, or making a hand gesture. If the platform guidelines define a recommended primary input then it should be used as the [=primary action=], otherwise the user agent is free to select one.
10641064

1065-
The <dfn attribute for="XRInputSource">handedness</dfn> attribute describes which hand the input source is associated with, if any. Input sources with no natural handedness (such as headset-mounted controls or standard gamepads) or for which the handedness is not currently known MUST set this attribute to the empty string.
1065+
The <dfn attribute for="XRInputSource">handedness</dfn> attribute describes which hand the input source is associated with, if any. Input sources with no natural handedness (such as headset-mounted controls or standard gamepads) or for which the handedness is not currently known MUST set this attribute {{XRHandedness/none}}.
10661066

10671067
The <dfn attribute for="XRInputSource">targetRayMode</dfn> attribute describes the method used to produce the target ray, and indicates how the application should present the target ray to the user if desired.
10681068

input-explainer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ partial interface XRSession {
267267
//
268268
269269
enum XRHandedness {
270-
"",
270+
"none",
271271
"left",
272272
"right"
273273
};

0 commit comments

Comments
 (0)