Optional WebHID helpers for Chromium-style browsers, plus plain Gamepad API snapshots (readPads).
This does not replace the Gamepad API:
use createGamepadManager (main package entry) for polling and high-level events. Use WebHID helpers
only when you need an explicit HID session (e.g. vendor-specific reports) alongside a Gamepad.
Optional WebHID helpers for Chromium-style browsers, plus plain Gamepad API snapshots (
readPads). This does not replace the Gamepad API: usecreateGamepadManager(main package entry) for polling and high-level events. Use WebHID helpers only when you need an explicit HID session (e.g. vendor-specific reports) alongside aGamepad.WebHID requires a secure context (HTTPS or localhost) and a user gesture for requestGamepadHidDevice. Feature-detect with supportsWebHid.