Commit Graph

22 Commits

Author SHA1 Message Date
Alan Ott 17c4c9251c Changed hid_error() to return const. 2010-08-21 13:22:03 -04:00
Alan Ott 4214841ae3 Added the get_*_string() functions for the libusb implementation. 2010-08-21 13:09:23 -04:00
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 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 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 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 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 da1ab35011 Fixed up the header comments. 2010-07-28 20:32:41 -04:00
Alan Ott aa3d51925a Changed the interface to use a pointer instead of an int as the device handle.
This is only implemented on Linux so far.
2010-07-24 11:05:36 -04:00
Alan Ott 844fd35c0c Set/Get Feature Support for Linux. 2010-07-10 21:48:24 -04:00
Alan Ott d2489f8755 Support for getting USB strings (Manufacturer, Product, Serial) from
the device during runtime (as opposed to enumerate-time).
2010-07-07 23:48:29 -04:00
Alan Ott d6db1ec8ca Worked around a problem in Linux kernels prior to 2.6.34.
Fixed non-blocking operation.
2010-07-03 15:33:22 -04:00
Alan Ott 0782bc31f0 README and Makefile for Linux. 2010-07-03 15:26:16 -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 6c0ee6befc Made the hidapi_enumerate() functional.
Added non-blocking operation.
2010-07-01 17:10:45 -04:00