play-u1 API
    Preparing search index...

    Module hid

    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.

    WebHID requires a secure context (HTTPS or localhost) and a user gesture for requestGamepadHidDevice. Feature-detect with supportsWebHid.

    Interfaces

    RequestGamepadHidDeviceOptions

    Type Aliases

    ButtonSnap
    PadSnap

    Variables

    GAMEPAD_HID_FILTERS
    HID_USAGE_PAGE_GAMEPAD

    Functions

    closeHidDevice
    hidLikelyMatchesGamepad
    openHidDevice
    readPads
    requestGamepadHidDevice
    supportsWebHid