aforren1 / toon

TOOls for experiments in psychophysics and Neuroscience
MIT License
0 stars 0 forks source link

HID may be difficult if the device has multiple interfaces #27

Closed aforren1 closed 7 years ago

aforren1 commented 7 years ago

I think if the HAND was compiled with the joystick option, and thus has that interface available. Unfortunately, that is the first interface available, and hidapi doesn't make it easy to query for additional interfaces (note in the recent commit on the context branch, I've subbed in the path to the device we want). I think this particular interface won't be robust across host machines (or certainly operating systems).

aforren1 commented 7 years ago

Addressed in f345d9e, where we filter based on product id (which should narrow us down to the proper device) and usage (which lets us exclude the joystick/other interface). This sort of filtering will be useful when we have multiple HANDs plugged in.