Alan Ott
f53f5fb0f8
Changed hid_get_feature_report() to return the number of bytes actually read on Windows. This involved changing the implementation to use DeviceIoControl() rather than HidD_GetFeature().
...
Changed it on Mac as well to return the same. The Linux implementation already did this.
2010-08-14 14:12:43 -04:00
Alan Ott
65331407a7
Made the hid_error() return wchar_t* so we can get translated error messages.
2010-08-10 14:58:59 -04:00
Alan Ott
0e67d54581
Merge branch 'master' of github.com:signal11/hidapi
2010-07-25 20:56:27 -04:00
Alan Ott
f4aec028de
Moved the \n so that NULL wide strings wouldn't mess up the stream.
2010-07-25 20:56:14 -04:00
Alan Ott
a0e06333c6
Updated for the new hidapi interface.
2010-07-25 20:52:05 -04:00
Alan Ott
23c43b0e84
Added some checking.
2010-07-10 22:01:43 -04:00
Alan Ott
7222c93ef9
Cleaned up main test program.
...
Removed wprintf() in favor of printf("%ls").
Added a sleep in the main read loop for demonstration.
memset-zero the buffer.
2010-07-10 21:52:33 -04:00
Alan Ott
32f9cb6c3c
Added support for Set/Get Feature reports for Windows.
2010-07-05 16:35:42 -04:00
Alan Ott
ebc18502b7
Added the hidapi_enumerate() interface on Linux.
...
Added manufacturer and product strings to the hid_device struct.
2010-07-01 17:39:24 -04:00
Alan Ott
0cc06e1f02
Added the hidapi_enumerate() interface to the Windows implementation.
2010-07-01 16:56:15 -04:00
Alan Ott
a1769df365
Ported to Linux and added the hidapi_enumerate() interface.
2010-06-30 22:46:55 -04:00
Alan Ott
35ec5feb49
Updates to the Visual Studio Project and Test program.
2010-05-30 15:45:56 -04:00
Alan Ott
21920c34fa
Added support for Nonblocking I/O.
...
Documented the hidapi.h header.
Fixed hid_get_error() wchar_t bug.
Fixed invalid handle error in hid_open()
Updated example to show non-blocking operation.
2010-05-30 15:09:47 -04:00
Alan Ott
2fb125f4bf
Cleanup of hidtest.cpp
...
Fixes for Release mode in hidtest-vc8.vcproj
2010-04-11 19:41:23 -04:00
Alan Ott
8c85933124
Added copying of the hidapi.dll to the post build script.
...
Added a system(pause) to the end of the test program.
2010-04-11 17:58:39 -04:00
Alan Ott
5773da50d9
Initial import of source files.
2010-04-11 16:29:01 -04:00