Commit Graph

550 Commits

Author SHA1 Message Date
Alan Ott
0c07642ab5 Support for getting USB Strings using the applications locale.
If the locale's language is not supported by the device, it defaults to
the first language available on the device.
2010-08-19 22:53:53 -04:00
Alan Ott
2dedc16309 Fixed get_usb_string() to use the first language the device says it supports. 2010-08-18 21:54:45 -04:00
Alan Ott
28ab1e6ac1 Changed to use pkg-config 2010-08-17 22:50:31 -04:00
Alan Ott
bf76531664 Makefile fix for using pkg-config 2010-08-17 22:15:23 -04:00
Alan Ott
32d785dbfe Changed to use pkg-config for libusb and fixed the position of libusb_close() in hid_enumerate(). 2010-08-17 22:13:54 -04:00
Alan Ott
35a8d0aecc Made the input loop only try to read endpoint->wMaxPacketSize. This way, messages don't get queued up, and are reported immediately. 2010-08-16 23:49:43 -04:00
Alan Ott
89d84b1e02 Don't send the report number if it's not needed for feature and output reports. 2010-08-16 23:32:20 -04:00
Alan Ott
461963e4b7 Libusb implementation for Linux. 2010-08-16 17:02:20 -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
0ab5194f0e Prettied up the error message 2010-08-10 15:03:09 -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
7309d191cc Fixed path for hidapi.h 2010-08-10 14:14:22 -04:00
Alan Ott
89aaf14bff Implemented the Send Feature Report section of the GUI. Tested in Linux. 2010-08-10 14:11:17 -04:00
Alan Ott
a1d25da0e5 Updated binary. 2010-08-01 23:45:11 -04:00
Alan Ott
f631e8108d Made it respond to the event generated by CMD-Tab. 2010-08-01 23:44:12 -04:00
Alan Ott
8691af7564 Forgot to add the executable itself. 2010-08-01 16:21:54 -04:00
Alan Ott
f41f06cadd Update mac implementation.
Made a Mac Application Bundle (TestGUI.app) for this application.
Handle dock actions properly for Quit and Show (single click) events.
2010-08-01 16:08:34 -04:00
Alan Ott
54c8061ec5 Fixed compile warning. 2010-07-28 21:43:51 -04:00
Alan Ott
65264446c3 Cleaned up output (printf()) 2010-07-28 21:43:11 -04:00
Alan Ott
794b95e232 Cleaned up the output (printf()).
Made the connect/disconnect button enable/disable when connections are made.
2010-07-28 21:40:44 -04:00
Alan Ott
208de82ec1 Merge branch 'master' of github.com:signal11/hidapi 2010-07-28 21:31:56 -04:00
Alan Ott
3c19a45952 Implemented the following for Mac OS X:
hid_get_manufacturer_string()
	hid_get_product_string()
	hid_get_serial_number_string()
2010-07-28 21:30:09 -04:00
Alan Ott
ca9d652e4a Added .gitignore to linux/ directory. 2010-07-28 21:17:03 -04:00
Alan Ott
6983cb4da0 Made hid_close() NULL-tolerant. 2010-07-28 21:14:36 -04:00
Alan Ott
d2c01f9000 Updated .gitignore to include generated files on Unix. 2010-07-28 20:57:46 -04:00
Alan Ott
228ec0cc25 Merge branch 'master' of github.com:signal11/hidapi 2010-07-28 20:54:01 -04:00
Alan Ott
306e3a6058 Updated to the new API. 2010-07-28 20:53:21 -04:00
Alan Ott
8348b17b82 Updated README to reflect recent changes. 2010-07-28 20:45:48 -04:00
Alan Ott
bfda043aa3 Updated built test GUI on windows. 2010-07-28 20:33:20 -04:00
Alan Ott
da1ab35011 Fixed up the header comments. 2010-07-28 20:32:41 -04:00
Alan Ott
d5d0b59005 Make hid_close NULL-safe, like delete and free() are. 2010-07-28 20:24:36 -04:00
Alan Ott
e561beba37 Fixed the Windows build files to have the proper paths. 2010-07-28 20:23:14 -04:00
Alan Ott
33b946eb39 Added warning disable on Windows. 2010-07-28 20:22:06 -04:00
Alan Ott
e21e31d1c2 Shifted stuff around and cleaned it up in the windows/ folder. 2010-07-28 20:19:07 -04:00
Alan Ott
4b6cde335a Deleted generated files which are no longer needed. 2010-07-28 19:40:13 -04:00
Alan Ott
80ad44b7cf Moved Windows build files to windows/ 2010-07-28 19:38:45 -04:00
Alan Ott
ea75ea6e89 Updated to be in sync with the other .gitignore files. 2010-07-27 22:57:52 -04:00
Alan Ott
3301d7a91e .gitignore to ignore generated files 2010-07-27 22:57:10 -04:00
Alan Ott
a06a7dc3f3 Brought the hidapi project into this solution. 2010-07-27 22:51:53 -04:00
Alan Ott
2097e314fc Modified the windows build to not require the DDK to build the DLL.
Also moved the windows hid.cpp file to windows/ from hidapi/. hidapi/ now
only contains the library header file.
2010-07-27 22:28:42 -04:00
Alan Ott
5dafc59018 Changed to not use the DDK to build the library. 2010-07-27 21:42:19 -04:00
Alan Ott
5ff108a94b Changed name from hidapi/ to windows/ 2010-07-27 21:40:17 -04:00
Alan Ott
03fe2dc9ac Updated Windows binary. 2010-07-25 23:21:53 -04:00
Alan Ott
30b7a910c5 New Windows Binaries. 2010-07-25 23:20:49 -04:00
Alan Ott
f3380552ee Checking in latest built files for Windows. 2010-07-25 23:16:23 -04:00
Alan Ott
d522d26d5c Added support for building the Windows version without the DDL by loading the hid.dll functions dynamically. 2010-07-25 23:07:17 -04:00
Alan Ott
1e14d11afa Added the DLL to the ignore list. 2010-07-25 22:21:54 -04:00
Alan Ott
567a5d15f2 Added generated files to the ignore list. 2010-07-25 22:20:34 -04:00
Alan Ott
49e5aedc06 Converted the Windows implementation over to use the new interface. 2010-07-25 22:11:50 -04:00
Alan Ott
0e67d54581 Merge branch 'master' of github.com:signal11/hidapi 2010-07-25 20:56:27 -04:00