Skip to content

32bit Usage items are not supported by get_usage of libusb backend #454

Closed
@JoergAtGithub

Description

@JoergAtGithub

The USB standard allows it to specify a usage in two ways:

  • Fully qualified as one single 4 byte report descriptor Usage item
  • Seperated in an 1 or 2 byte Usage-Page item, followed by an 1 or 2 byte Usage item
    The get_usage function of the libusb backend supports only the second.

From USB HID spec 1.11 page 17:
grafik

From USB HID spec 1.11 page 35:
grafik

Activity

added
bugSomething isn't working
libusbRelated to libusb backend
on Sep 11, 2022
mcuee

mcuee commented on May 10, 2023

@mcuee
Member

Is it because most of the USB HID Devices use the second way that we have not seen bug report for thr libusb backend?

Youw

Youw commented on May 10, 2023

@Youw
Member

Yes, likely

added a commit that references this issue on Aug 26, 2023
8a4de63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibusbRelated to libusb backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      32bit Usage items are not supported by get_usage of libusb backend · Issue #454 · libusb/hidapi