Skip to content

[Feature Request]: HIDDevice Object should contain usagePage and usage properties #43713

@Totati

Description

@Totati

Preflight Checklist

Problem Description

When implementing the setDevicePermissionHandler(handler) we could not filter devices based on usagePage. As we would not care about the vendor or product in our app we can't preconnect the device based on usage.

Proposed Solution

Add usagePage and usage properties to device information, just like it can be read in the browser when a device is connected.
requestDevice() has these properties in it's HIDDeviceFilter as well.

Alternatives Considered

No idea.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions