The oculus-go-controls component interfaces with the Oculus Go controllers.
It wraps the tracked-controls component while adding button
mappings, events, and an Oculus Go controller model that highlights the touched
and/or pressed buttons (trackpad, trigger).
Example
<!-- Match Oculus Go controller if present, regardless of hand. --> <a-entityoculus-go-controls></a-entity>
<!-- Match Oculus Go controller if present and for specified hand. --> <a-entityoculus-go-controls="hand: left"></a-entity> <a-entityoculus-go-controls="hand: right"></a-entity>
Value
Property
Description
Default
armModel
Whether the arm model is used for positional data.
true
buttonColor
Button colors when not pressed.
#000000
buttonTouchedColor
Button colors when touched.
#777777
buttonHighlightColor
Button colors when pressed and active.
#FFFFFF
hand
The hand that will be tracked (e.g., right, left).