XR · function
controllerFor
The first source for a hand, or null. Two sources may share a handedness and rarely do.
Explained in XR.
function controllerFor(states: readonly ControllerState[], handedness: Handedness): ControllerState | nullimport { controllerFor } from '@driftengine/xr';Parameters
| Parameter | Type | Description |
|---|---|---|
states | readonly ControllerState[] | |
handedness | Handedness |