XR · function

buttonValue

One named button's analogue value, or zero where the device has no such button.

Explained in XR.

function buttonValue(state: ControllerState, button: XrButton): number
import { buttonValue } from '@driftengine/xr';

Parameters

ParameterTypeDescription
stateControllerState
buttonXrButton