Skip to content

Commit 659f1c3

Browse files
committed
Add hidapi library for other OS
1 parent dff5eb6 commit 659f1c3

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
@@ -4,8 +4,10 @@
44
module HidApi
55
class HidError < StandardError; end
66

7+
HIDAPI_LIBS = %w(hidapi hidapi-libusb hidapi-hidraw).freeze
8+
79
extend FFI::Library
8-
ffi_lib "hidapi"
10+
ffi_lib HIDAPI_LIBS
911

1012
autoload :Deprecated, "hid_api/deprecated"
1113
autoload :Device, "hid_api/device"

0 commit comments

Comments
 (0)