Commit Graph

22 Commits

Author SHA1 Message Date
Alan Ott
6a8ed4797d Add hid_exit() to example program. 2011-09-13 02:39:08 +08:00
Alan Ott
be33ec11a3 Call hid_close() at the end of testgui.cpp. 2011-09-13 02:19:46 +08:00
Alan Ott
eebf197414 Change interface to interface_number in hid_device_info struct.
Forgot to add to previous commit.
2011-01-18 23:05:58 -05:00
Alan Ott
a93cdfbeac Add the interface number to hid_device_info on Linux/libusb implementation.
The interface number is added to the hid_device_info struct. Since the
Linux/libusb implementation can't put the Usage and Usage Page in the
hid_device_info struct because it requires detaching the kernel driver, the
interface number is added instead so that users with composite HID devices
can differentiate between the interfaces on the device.
2011-01-18 22:52:06 -05:00
Alan Ott
0dd77c86be Add release_number to hidtest.
Added a printf() with the release number to the hidtest test program.
2011-01-18 21:33:53 -05:00
Alan Ott
09cb41aada Additional licenses. HIDAPI is now GPLv3, BSD, or the original license,
at the discretion of the user. This should provide maximum flexibility and
freedom.
2010-09-13 11:15:24 -04:00
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