Alan Ott
b20777fc0c
testgui: more robust handling of report length fields
...
Improve logic of report length field handling for empty fields.
Add column headers for data and length fields.
Add documentation statement about length fields.
Increase window size.
Add message boxes when invalid values are entered.
memset() buffers to zero.
2012-11-26 22:27:24 -05:00
Michael Pisarski
1fba3f98f0
testgui: Add fields for lengths of reports
...
Windows platforms return errors When you do not specify the proper buffer
size and length.
2012-11-26 22:27:24 -05:00
Alan Ott
6d50f8fa0f
Add Autotools build system (automake, autconf)
...
This adds the familiar autotools build system and associated documentation
for Linux, FreeBSD, Mac, MinGW, and Cygwin. The old Makefiles have been
kept, and where appropriate have been renamed Makefile-manual.
Thanks to Peter Stuge, Ludovic Rousseau, Xiaofan Chen, Alex Dupre, and
Segher Boessenkool for providing testing, review, and suggestions, and to
Ludovic Rousseau for providing patches which contributed to this commit.
2012-07-16 00:43:04 -04:00
Alan Ott
38a7bf75f0
Renamed manual makefiles so they're out of the way of autotools
...
Files named Makefile which will conflict with autotools have been renamed to
Makefile-manual.
2012-07-16 00:43:04 -04:00
Alan Ott
b417e9413e
Remove MacOS TestGUI Binaries from git
2012-07-16 00:43:04 -04:00
Alan Ott
bdb87db5b8
Libusb: testgui: Explicitly link to libpthread.
...
Reported by: Xiaofan Chen <xiaofanc@gmail.com >
2012-05-03 22:25:40 -04:00
Alex Dupre
1fd27eaa25
testgui: Fix signed/unsigned warning
2012-05-02 18:55:37 -04:00
Alan Ott
74440e2dbb
FreeBSD: Add FreeBSD implementation.
...
This adds a FreeBSD implementation to HIDAPI using the libusb back-end. The
libusb/ folder now contains the libusb implementation and associated
Makefiles for Linux and FreeBSD. All libusb code has been removed from the
linux/ folder, so that the code in libusb/ can be shared by both (and
future) platforms.
This commit renames linux/hid-libusb.c to libusb/hid.c. Make sure to
use git log --follow to see full history of that file.
This code was written by:
Alex Dupre <ale@FreeBSD.org >
Alan Ott <alan@signal11.us >
2012-05-02 18:55:28 -04:00
Alan Ott
c30dfd8c97
Linux: add -lrt to link with librt.
...
This is required for some distributions but not others.
2012-05-02 14:42:26 -04:00
Alan Ott
edf1899837
Updated Mac binary
2011-10-25 20:58:17 -04:00
Alan Ott
4419c3bdf4
Change windows/hid.cpp to windows/hid.c
...
The changes to make it compile with just C (not C++) are already in.
2011-09-22 18:59:33 -04:00
Alan Ott
db5cb875d3
Merge branch 'master' of github.com:signal11/hidapi
2011-09-21 17:27:54 -04:00
Alan Ott
bab22b7ac1
Convert to Cocoa for event handling on the Test GUI on Mac
...
Carbon is no good on 10.5 and later on 64-bit. Github user
dportabella found a workaround in Cocoa[1], and I added code
to make it handle the events from the dock, like the carbon
version did.
[1] https://github.com/signal11/hidapi/issues/14
2011-09-13 10:48:39 +08:00
Alan Ott
15c81e080e
Merge branch 'master' of github.com:signal11/hidapi
...
Conflicts:
hidtest/hidtest.cpp
2011-09-12 15:06:33 -04:00
Alan Ott
9d50cf35d0
Add hid_close() and hid_exit() to test gui at exit time.
2011-09-13 02:42:16 +08:00
Alan Ott
fe4f75b0ff
Updated README.txt, removed testgui/README.txt
...
README.txt is now current and contains the info which was in
testgui/README.txt. testgui/README.txt has been removed as obsolete.
2011-09-13 02:19:46 +08:00
Alan Ott
35dfe2a012
Updated README.txt, removed testgui/README.txt
...
README.txt is now current and contains the info which was in
testgui/README.txt. testgui/README.txt has been removed as obsolete.
2011-09-10 17:51:10 -04:00
Alan Ott
6ad666c5b5
Updated Binary.
2011-04-08 20:05:11 -04:00
Alan Ott
d7f5f2cca5
Binary on Mac OS X
2011-04-08 19:39:54 -04:00
Alan Ott
f61cea6e69
Makefiles for MinGW
2011-04-08 18:48:12 -04:00
Alan Ott
265cefb1d3
Print error when hid_read() fails.
2011-02-09 08:37:11 -05:00
Alan Ott
3a4192eb45
Support for Usage Page and Usage for each device in the hid_device_info struct.
2011-01-11 23:59:12 -05:00
Alan Ott
c11c1bc463
new binary
2010-12-09 14:17:54 -07:00
Alan Ott
7640dc1564
Merge branch 'master' of github.com:signal11/hidapi
2010-10-08 18:30:15 -04:00
Alan Ott
3ba5b6c914
Fixed some errors that Valgrind pointed out.
2010-10-08 18:24:26 -04:00
Alan Ott
c6861c43c6
New binary
2010-09-28 16:53:13 -04:00
Alan Ott
b14d227de7
Getting Feature Reports, and a Re-scan devices button.
2010-09-28 16:30:47 -04:00
Alan Ott
7650ac65b2
Merge branch 'master' of github.com:signal11/hidapi
2010-09-13 11:16:35 -04: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
b5bdda08da
Updated binary
2010-08-23 17:44:20 -04:00
Alan Ott
727399b79e
Updated binary
2010-08-21 13:29:38 -04:00
Alan Ott
2ca7aa00eb
Updated binary
2010-08-21 13:27:45 -04:00
Alan Ott
bf76531664
Makefile fix for using pkg-config
2010-08-17 22:15:23 -04:00
Alan Ott
461963e4b7
Libusb implementation for Linux.
2010-08-16 17:02:20 -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
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
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
d2c01f9000
Updated .gitignore to include generated files on Unix.
2010-07-28 20:57:46 -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
33b946eb39
Added warning disable on Windows.
2010-07-28 20:22:06 -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
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
03fe2dc9ac
Updated Windows binary.
2010-07-25 23:21:53 -04:00
Alan Ott
1e14d11afa
Added the DLL to the ignore list.
2010-07-25 22:21:54 -04:00