Skip to content

Commit 7baf253

Browse files
[docs] Rename tracked-controls-webxr to tracked-controls in docs and example scripts that were missed in 1.7.0 release (#5808)
1 parent 7d5a1ae commit 7baf253

5 files changed

Lines changed: 5 additions & 10 deletions

File tree

docs/components/tracked-controls.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ This component elects the appropriate controller, applies pose to
2121
the entity, observes buttons state and emits appropriate events. For non-6DOF controllers,
2222
a primitive arm model is used to emulate positional data.
2323

24-
tracked-controls sets two components that handles different Web API versions for VR:
25-
26-
- tracked-controls-webvr
27-
- tracked-controls-webxr
28-
2924
## Example
3025

3126
Note that due to recent browser-specific changes, Vive controllers may be returned

docs/components/webxr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ important that the viewer (camera) and controllers are consistent.
6060
For consistency when used in components, this name is available as
6161
`sceneEl.systems.webxr.sessionReferenceSpaceType`, and the corresponding
6262
reference space object is available during the XR session as
63-
`sceneEl.systems['tracked-controls-webxr'].referenceSpace`.
63+
`sceneEl.systems['tracked-controls'].referenceSpace`.
6464

6565
### requiredFeatures
6666

examples/showcase/layer-cubemap/cubemap-switcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ AFRAME.registerComponent('cubemap-switcher', {
159159
},
160160

161161
checkInput: function () {
162-
var leftHandControls = this.leftHandEl.components['tracked-controls-webxr'];
163-
var rightHandControls = this.rightHandEl.components['tracked-controls-webxr'];
162+
var leftHandControls = this.leftHandEl.components['tracked-controls'];
163+
var rightHandControls = this.rightHandEl.components['tracked-controls'];
164164
if (leftHandControls) { leftHandControls.updateButtons(); }
165165
if (rightHandControls) { rightHandControls.updateButtons(); }
166166
},

examples/showcase/tracked-controls/components/ar-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AFRAME.registerComponent('ar-controls', {
1111
},
1212

1313
updateControllers: function () {
14-
var controllers = this.el.systems['tracked-controls-webxr'].controllers;
14+
var controllers = this.el.systems['tracked-controls'].controllers;
1515
var i;
1616
var xrSession = this.el.xrSession;
1717
if (!xrSession) { return; }

examples/showcase/tracked-controls/components/grab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Updates its position to move along the controller.
77
*/
88
AFRAME.registerComponent('grab', {
9-
after: ['tracked-controls-webxr'],
9+
after: ['tracked-controls'],
1010
before: ['aabb-collider'],
1111
init: function () {
1212
this.GRABBED_STATE = 'grabbed';

0 commit comments

Comments
 (0)