Adrian Parker
2008-05-26 16:19:44 UTC
I'm looking at
http://svn.debian.org/wsvn/libhid/trunk/test/test_libhid.c?op=file&rev=0&sc=0,
and it seems you have to manually run hid_dump_tree in advance, manually
identify the device and PATH you want to read from.
What if I don't know what devices the users will have at compile time? Has
anyone example code that progmatically parses an input report descriptor,
from this determines the required input buffer size, and then does a read
receiving the read data in some kind of meaningful structure?
Adrian
http://svn.debian.org/wsvn/libhid/trunk/test/test_libhid.c?op=file&rev=0&sc=0,
and it seems you have to manually run hid_dump_tree in advance, manually
identify the device and PATH you want to read from.
What if I don't know what devices the users will have at compile time? Has
anyone example code that progmatically parses an input report descriptor,
from this determines the required input buffer size, and then does a read
receiving the read data in some kind of meaningful structure?
Adrian