Skip to content

Commit e71fac1

Browse files
committed
Add hidapi library for other OS
1 parent 8e6f175 commit e71fac1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/hid_api.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
module HidApi
44
class HidError < StandardError; end
55

6+
HIDAPI_LIBS = %w(hidapi hidapi-libusb hidapi-hidraw).freeze
7+
68
extend FFI::Library
7-
ffi_lib 'hidapi'
9+
ffi_lib HIDAPI_LIBS
810

911
autoload :Device, 'hid_api/device'
1012
autoload :DeviceInfo, 'hid_api/device_info'

0 commit comments

Comments
 (0)