useXRControllerState

Caution

Deprecated: use useXRInputSourceState("controller", "left") instead

Call Signature

useXRControllerState(handedness): undefined | XRControllerState

Hook for getting the XRControllerState

Parameters handedness

XRHandedness

the handedness that the XRControllerState should have

Returns

undefined | XRControllerState

Call Signature

useXRControllerState(): XRControllerState

Hook for getting the XRControllerState

Returns

XRControllerState