XR · const
XR_BUTTON
The buttons the WebXR gamepad profile fixes, in its order.
Explained in XR.
const XR_BUTTON:import { XR_BUTTON } from '@driftengine/xr';In depth
Indexes and not a guess: the profile pins 0 to the trigger and 1 to the squeeze for every device
that reports xr-standard, which is what makes reading them by name safe. A device offering
fewer buttons simply has none at the higher indexes, which reads as zero rather than as an error.