Dimitriy Ryazantcev
fe9a2a2e28
Ported code from SetupApi to CfgMgr32 ( #362 )
...
- https://docs.microsoft.com/windows-hardware/drivers/install/porting-from-setupapi-to-cfgmgr32
- Use Unicode Windows API internally where possible.
2022-01-21 18:43:08 +02:00
Luca Weiss
30c46ad876
testgui: ensure $EXEPATH is a directory
...
Otherwise hidapi-testgui will be put at TestGUI.app/Contents/MacOS which
results in a malformed .app structure.
The following build combinations have been tested:
* 'make -f Makefile-manual' with libtool
* 'make -f Makefile-manual' without libtool
* './configure --enable-testgui && make'
Fixes #151
2020-03-08 19:40:48 +02:00
Luca Weiss
ecade8c6fd
testgui: fix incompatible pointer warning
...
mac_support_cocoa.m:67:49: warning: incompatible pointer types sending 'MyAppDelegate *' to parameter of type
'id<NSApplicationDelegate> _Nullable' [-Wincompatible-pointer-types]
[[NSApplication sharedApplication] setDelegate:d];
^
2019-07-23 22:31:03 +02:00
Luca Weiss
04a1789710
testgui: fix deprecation warning
...
mac_support_cocoa.m:80:49: warning: 'NSAnyEventMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
NSEvent* event = [NSApp nextEventMatchingMask:NSAnyEventMask
^~~~~~~~~~~~~~
NSEventMaskAny
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:158:26: note:
'NSAnyEventMask' has been explicitly marked deprecated here
static const NSEventMask NSAnyEventMask NS_DEPRECATED_WITH_REPLACEMENT_MAC("NSEventMaskAny", 10_0, 10_12) = NSUIntegerMax;
^
2019-07-23 22:31:03 +02:00
Luca Weiss
a1d49824ea
testgui: remove obsolete files
...
mac_support.cpp is unused since commit bab22b7 and start.sh is the
original authors custom start script that we don't want.
2019-07-23 22:14:10 +03:00
luz.paz
f01c4ede50
Misc. typo fixes
...
Found via `codespell -q 3`
2019-07-14 13:54:55 +02:00
Alan Ott
4ecb5a6903
autotools: Add mac_support.h to Makefile.am
...
Not sure how this got missed.
2013-10-06 18:43:37 -04:00
Alan Ott
837ba31050
testgui: Remove pre-built testgui executable
...
Executables should have never been in the repo to begin with.
2013-10-06 17:55:21 -04:00
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