Skip to content

Commit

Permalink
dll: Provide 64-bit and 32-bit MSVC DLL library
Browse files Browse the repository at this point in the history
DLL is a HIDAPI C library compiled with Visual Studio 2017 with fix
which enables sending/receiving feature requests on devices claimed by
Windows such as mouse or keyboard:
https://github.com/signal11/hidapi/pull/335/files

For 64-bit Python interpreter a 64-bit DLL library is needed. It is also
provided and will be loaded automatically if the program cannot load
32-bit library.

DLL files also include a fix for enumeration and opening of
non-composite HID devices:
signal11/hidapi#418

DLLs are in "Release" version so they do not require Windows debug
libraries from user.

Signed-off-by: Kubicz, Filip <[email protected]>
  • Loading branch information
Qbicz committed May 27, 2019
1 parent 8629071 commit e712ba3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file added dll/hidapi-x64.dll
Binary file not shown.
Binary file added dll/hidapi.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions hid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
'libhidapi-iohidmanager.so.0',
'libhidapi.dylib',
'hidapi.dll',
'libhidapi-0.dll'
)
'libhidapi-0.dll',
'hidapi-x64.dll',)

for lib in library_paths:
try:
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
],
data_files=[
('', [os.path.join('dll', 'hidapi.dll')]),
('', [os.path.join('dll', 'hidapi-x64.dll')])
],
keywords='',
author='Austin Morton',
author_email='[email protected]',
Expand Down

0 comments on commit e712ba3

Please sign in to comment.