tracked-controls

Note: This documentation is for the old 0.4.0 version of A-Frame. Check out the documentation for the current 1.6.0 version

The tracked-controls component interfaces with tracked controllers. tracked-controls uses the Gamepad API to handle tracked controllers, and is abstracted by the hand-controls component as well as the vive-controls and oculus-touch-controls components. This component elects the appropriate controller, applies pose to the entity, observes buttons state and emits appropriate events.

Example

<a-entity tracked-controls="controller: 0; id: OpenVR Gamepad"></a-entity>

Value

Property Description Default Value
controller Index of the controller in array returned by the Gamepad API. 0
id Selects the controller returned by the Gamepad API. OpenVR Gamepad

Events

Event Name Description
axismove Axis changed.
buttonchanged Any touch or press of a button fires this.
buttondown Button pressed.
buttonup Button released.
touchstart Touch sensitive button touched.
touchend Touch sensitive button released.

More Resources