Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hid_get_device_info #432

Merged
merged 28 commits into from
Aug 13, 2022
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
4155be7
feat: Add hid_get_device_info
Julusian Jun 20, 2022
1818b59
chore: formatting
Julusian Jun 20, 2022
19e03fb
Apply suggestions from code review
Julusian Jun 23, 2022
5497de1
Update hidapi/hidapi.h
Julusian Jun 23, 2022
f88c36c
fix: segfaults
Julusian Jun 23, 2022
575b133
fix: windows hopefully
Julusian Jun 23, 2022
372c89b
fix: code review suggestions
Julusian Jul 17, 2022
c42b4b8
fix: lazy load hid_get_device_info result on some platforms
Julusian Jul 26, 2022
3d992cd
Update libusb/hid.c
Youw Aug 1, 2022
8d2954c
Update libusb/hid.c
Youw Aug 1, 2022
29f3826
Update libusb/hid.c
Youw Aug 1, 2022
5c75cd0
Update hidapi/hidapi.h
Youw Aug 1, 2022
938b912
Apply suggestions from code review
Julusian Aug 1, 2022
1832674
code review comments
Julusian Aug 1, 2022
fdddfc6
refactor libusb fill_device_info_for_device into create_device_info_f…
Julusian Aug 1, 2022
cd7349e
review comments
Julusian Aug 1, 2022
e6241f9
Explicit documentation NOTE
Youw Aug 6, 2022
79a77a7
libusb: lazy initialisation for get_device_info
Youw Aug 6, 2022
acd4788
fix invasive detach build
Youw Aug 6, 2022
e48a449
fix usage_page/usage fill
Youw Aug 7, 2022
4471fce
compilation fix
Youw Aug 7, 2022
e22cc65
typo
Youw Aug 7, 2022
d5bfa6e
use MAX_REPORT_DESCRIPTOR_SIZE constant
Youw Aug 7, 2022
5bb05a9
correct woding
Youw Aug 7, 2022
c7a8a71
check for handle
Youw Aug 7, 2022
8d11ec5
code style
Youw Aug 7, 2022
0296250
hidtest: print all of hid_get_device_info
Youw Aug 7, 2022
4779d63
refactor hidraw create_device_info_for_hid_device
Youw Aug 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update libusb/hid.c
  • Loading branch information
Youw authored Aug 1, 2022
commit 8d2954c04506fddbf4089d63e7289db950808c3c
2 changes: 1 addition & 1 deletion libusb/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ static void fill_device_info_for_device(libusb_device_handle *handle, struct hid
if (res >= 0) {
unsigned short page=0, usage=0;
/* Parse the usage and usage page
out of the report descriptor. */
out of the report descriptor. */
get_usage(data, res, &page, &usage);
cur_dev->usage_page = page;
cur_dev->usage = usage;
Expand Down