Skip to content

HID Usage is property of a HID top-level-collection, not of a HID device #453

@JoergAtGithub

Description

@JoergAtGithub

The HID standard doesn't define a Usage for an whole HID device. These property belongs to a top level collection.

  • This fits only with HIDAPIs Windows backend, because an hid_device structure is returned per top-level collection.
  • For the other backends, the hid_device structure is returned for an whole HID device, which can consist multiple top-level collections. Therefore you can get only the Usage of the first top-level collection that appears in the report descriptor of an HID device.

From USB HID spec 1.11 page 34:
grafik

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIAPI change, Version 1 stuffCoreRelated to common codes like hidapi.henhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions