XR · function
buttonPressed
Whether a named button is pressed, false where the device has no such button.
Explained in XR.
function buttonPressed(state: ControllerState, button: XrButton): booleanimport { buttonPressed } from '@driftengine/xr';Parameters
| Parameter | Type | Description |
|---|---|---|
state | ControllerState | |
button | XrButton |