Skip to content

Commit 2768df5

Browse files
klauswtoji
authored andcommitted
Clarify how the controller-state demo works
I think the description of this sample was a bit confusing. It would be natural to expect the pointed-at box to change color, but it's actually showing one box per button and toggles color independent of the pointing direction.
1 parent ab0990a commit 2768df5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controller-state.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
<details open>
3737
<summary>Controller State</summary>
3838
<p>
39-
This sample demonstrates using XRInputSource Gamepad button presses
40-
to change box color and joystick/touchpad input to move boxes in 2
41-
dimensions.
39+
This sample demonstrates XRInputSource Gamepad integration. It shows
40+
one box per available button. Pressing the button toggles the associated
41+
box's color. Use joystick/touchpad input to move boxes in 2 dimensions.
4242
<a class="back" href="./index.html">Back</a>
4343
</p>
4444
</details>
@@ -364,4 +364,4 @@
364364
initXR();
365365
</script>
366366
</body>
367-
</html>
367+
</html>

0 commit comments

Comments
 (0)