Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The read-only inputSources property of the XRSession interface returns an XRInputSourceArray object which lists all controllers and input devices which are expressly associated with the XR device and are currently available. These controllers may include handheld controllers, XR-equipped gloves, optically tracked hands, and gaze-based input methods. Keyboards, gamepads, and mice are not considered WebXR input sources.
Note: Traditional gamepad controllers are supported using the Gamepad API.