Skip to content

Commit

Permalink
windows: add hid_get_report_descriptor implementation (#306)
Browse files Browse the repository at this point in the history
Based on HIDP_PREPARSED_DATA reverse-engineer/reconstruction.
  • Loading branch information
JoergAtGithub committed Jan 3, 2022
1 parent 654de3d commit 2610d00
Show file tree
Hide file tree
Showing 2 changed files with 1,230 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hidtest/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main(int argc, char* argv[])
printf(" Report Descriptor: ");
res = hid_get_report_descriptor(device, buf, sizeof(buf));
if (res < 0) {
printf("error getting.");
printf("error getting: %ls", hid_error(device));
}
else {
printf("(%d bytes)", res);
Expand Down
Loading

0 comments on commit 2610d00

Please sign in to comment.