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): numberimport { buttonValue } from '@driftengine/xr';Parameters
| Parameter | Type | Description |
|---|---|---|
state | ControllerState | |
button | XrButton |