sauravsingh29 / javahidapi

Automatically exported from code.google.com/p/javahidapi
Other
0 stars 0 forks source link

Reading input reports via GET_REPORT to EP0 not supported? #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
While porting a minimum C# project to Java, I noticed that reading input data 
didn't work quite as well any more.
When investigating I found that while the C# software used the Win32 API call 
HidD_GetInputReport() to read the input report via a control transfer 
(GET_REPORT to endpoint 0), the hidapi function hidDevice.read() seems to read 
the interrupt based input report (from endpoint 1 in my case).
As there seems to be some weird buffering going on with the interrupt based 
input report, I'd prefer the control based approach.
As far as I can tell though, it doesn't seem to be supported.

Original issue reported on code.google.com by Volker...@googlemail.com on 11 Jun 2013 at 3:11