[libhid-discuss] Error in example

Adrian Parker adrian.l.parker at gmail.com
Mon May 26 13:46:05 UTC 2008


Please refer too:
http://svn.debian.org/wsvn/libhid/trunk/test/lshid.c?op=file&rev=0&sc=0

The device_iterator matching function in this does:

device->config->interface->altsetting->bInterfaceClass == USB_CLASS_HID

However, it seems that only the first interface of each device is passed too
device_iterator.  If the HID interface of the device isn't the first
interface (on my Microsoft Lifechat LX-3000 its the 4th interface), then
this device always fails the above check.


-- 
Adrian Parker
Senior Programmer Analyst
DLCSPM 6 Simulation
Building A31, CFB Kingston

Tel: (613) 541-5010 x3020
CSN: 271-3020
Email: parker at lsec.dnd.ca


More information about the libhid-discuss mailing list