docs/components/magicleap-controls.md
The magicleap-controls component interfaces with the Magic Leap controller. It wraps the tracked-controls component while adding button mappings, events, and Magic Leap controller model/
<!-- Match Magic Leap controller if present, regardless of hand. -->
<a-entity magicleap-controls></a-entity>
<!-- Match Magic Leap controller if present and for specified hand. -->
<a-entity magicleap-controls="hand: left"></a-entity>
<a-entity magicleap-controls="hand: right"></a-entity>
| Property | Description | Default |
|---|---|---|
| hand | The hand that will be tracked (e.g., right, left). | |
| model | Whether the Magic Leap controller model is loaded. | true |
| Event Name | Description |
|---|---|
| touchpadchanged | Touchpad changed. |
| touchpaddown | Touchpad pressed. |
| touchpadmoved | Touchpad axis changed. |
| touchpadup | Touchpad released. |
| touchpadtouchstart | Touchpad touched. |
| touchpadtouchend | Touchpad not touched. |
| gripchanged | Grip changed. |
| gripdown | Grip pressed. |
| gripup | Grip released. |
| triggerchanged | Trigger changed. |
| triggerdown | Trigger pressed. |
| triggerup | Trigger released. |
| menuchanged | Menu changed. |
| menudown | Menu pressed. |
| menuup | Menu released. |