Skip to content

Can you show an example for communicating with a simple mouse? #467

@Videogamer555

Description

@Videogamer555

I would like to get the raw movement and button click reports from my mouse using your hidapi.dll but I don't know the correct format to send the request for the movement and button reports. I know that for every time I call the hid_read function to receive a report, I must first have called the hid_write function to send a request for that report. What is the correct format for the mouse movement report request that the computer must send to the mouse, prior to actually receiving the report? I see a lot of documentation online about HID report "descriptors" for the mouse report like documented at https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/mouse-collection-report-descriptor but this is the report descriptor, not the report request. Where does the descriptor fit into the whole request/response scheme for getting an HID report? Is the descriptor the same thing that I've been referring to as the "report request"? An actual example of this would be nice, as it would far more practical than the current HID example given on the main page of this Github project (the current example being for some device I've never heard of called "Microchip USB Generic HID").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions