MCPcopy
hub / github.com/aframevr/aframe / setupTrackedControls

Function setupTrackedControls

tests/components/hand-controls.test.js:10–15  ·  view source on GitHub ↗
(controllerType)

Source from the content-addressed store, hash-verified

8 var el;
9
10 function setupTrackedControls (controllerType) {
11 var trackedControls;
12 el.setAttribute('tracked-controls', '');
13 trackedControls = el.components['tracked-controls'];
14 trackedControls.controller = {id: controllerType, connected: true};
15 }
16
17 setup(function (done) {
18 el = entityFactory();

Callers 1

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected