NOTE: This version of the documentation tracks unstable development happening on A-Frame’s
masterbranch. If you wish to try it out, grab the unstable build. Otherwise, head to the documentation for the current 1.5.0 version
The vive-focus-controls component interfaces with the Vive Focus controller. It wraps the tracked-controls component while adding button mappings, events, and an Vive Focus controller model that highlights the touched and/or pressed buttons (trackpad, trigger).
<!-- Match Vive Focus controller if present, regardless of hand. -->
|armModel||Whether the arm model is used for positional data.||true|
|buttonTouchedColor||Button colors when touched (Trackpad only).||#777777|
|buttonHighlightColor||Button colors when pressed and active.||#FFFFFF|
|hand||The hand that will be tracked (e.g., right, left).|
|model||Whether the Vive Focus controller model is loaded.||true|
|orientationOffset||Offset to apply to model orientation.||x: 0, y: 0, z: 0|
|trackpadmoved||Trackpad axis changed.|
|trackpadtouchend||Trackpad not touched.|
As this controller’s buttons are digital, the changed events only fire when a button is fully pressed or released (value 0 or 1).