Skip to content

Commit e712ba3

Browse files
committed
dll: Provide 64-bit and 32-bit MSVC DLL library
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]>
1 parent 8629071 commit e712ba3

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

dll/hidapi-x64.dll

18 KB
Binary file not shown.

dll/hidapi.dll

14 KB
Binary file not shown.

hid/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
'libhidapi-iohidmanager.so.0',
1616
'libhidapi.dylib',
1717
'hidapi.dll',
18-
'libhidapi-0.dll'
19-
)
18+
'libhidapi-0.dll',
19+
'hidapi-x64.dll',)
2020

2121
for lib in library_paths:
2222
try:

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
'Programming Language :: Python :: 2.7',
2222
'Programming Language :: Python :: 3',
2323
],
24+
data_files=[
25+
('', [os.path.join('dll', 'hidapi.dll')]),
26+
('', [os.path.join('dll', 'hidapi-x64.dll')])
27+
],
2428
keywords='',
2529
author='Austin Morton',
2630
author_email='[email protected]',

0 commit comments

Comments
 (0)