Auto-Detect Controllers component for A-Frame.
npm install aframe-auto-detect-controllers-componentgearvr-controls does not supply a controller model.)
model to false, in which case the injected component is instructed not to use its built-in model.
trackedcontrols to true, in which case the more generic component without model will be injected.
html
`
To also use gearvr-controls:
`html
`
Value
| Property | Description | Default Value |
|----------------------|----------------------------------------------------|----------------------|
| hand | When detected, inject controls with this hand. | 'right' |
| singlehand | Single-hand controllers inject with this hand. | 'right' |
| trackedcontrols | Inject tracked-controls not e.g. vive-controls | false |
| model | Inject with this model property value. | true |
Events
| Event Name | Description |
| ---------- | ----------- |
$3
#### Browser
Install and use by directly including the browser files:
`html
My A-Frame Scene
`
#### npm
Install via npm:
`bash
npm install aframe-auto-detect-controllers-component
`
Then register and use.
`js
require('aframe');
require('aframe-auto-detect-controllers-component');
``