[libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

Andrew Silverman andrewsi at microsoft.com
Wed Mar 25 19:48:04 UTC 2015


Answered my own question.  Found the interface selection parameter on the force_open call.  It's writing successful output reports now!  Now I just have to wait till I get home to see whether it has the intended effect on the stick behavior.

_____________________________
Andy Silverman
Principal Program Manager, Microsoft Manufacturing Test Engineering
"Another day with no plans to use calculus."

-----Original Message-----
From: Andrew Silverman 
Sent: Wednesday, March 25, 2015 12:26 PM
To: libhid-discuss at lists.alioth.debian.org
Subject: RE: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

One more question:  Is there a way when doing the HIDInterfaceMatcher (via custom matching function or otherwise?) to pick a different endpoint? I'm experimenting with altering the code altogether to use the one visible HID Output Report instead of the control endpoint, but the one defining the output report is the third HID interface in the lsusb output.  (Associated with endpoint 3, I think).  Maybe I have the terminology wrong, but when matching just by VID/PID, the libhid code always takes the first HID interface (I can see it in hid_prepare_parser() debug output), and I need to get it to ignore the first two and pick up the third instead.

_____________________________
Andy Silverman



More information about the libhid-discuss mailing list