You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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").
The text was updated successfully, but these errors were encountered:
Windows exclusively captures special input devices like mouse or keyboard so those cannot be opened as a raw HID devices, i.e. hidapi cannot open mouses or keyboards.
On Windows only a focused window can receive mouse/keyboard events, and only using WinAPI, like WM_MOUSEMOVE. Otherwise any background application could capture when you enter your password(s)/credit card credentials, etc.
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").
The text was updated successfully, but these errors were encountered: