Inputs and input sources

In this guide, we'll take a look at how to use WebXR's input device management features to select appropriate input devices and receive user input from them.


Primary actions

Each input source should define a primary action. A primary action is a platform-specific action which responds to the user manipulating it by delivering, in order, the events selectstart, select, and selectend. Each of these events is of type XRInputSourceEvent.