diff --git a/frontend/device/kindle/device.lua b/frontend/device/kindle/device.lua index cc8b0025e..9479440f3 100644 --- a/frontend/device/kindle/device.lua +++ b/frontend/device/kindle/device.lua @@ -476,8 +476,9 @@ end function Kindle:openInputDevices() -- Auto-detect input devices (via FBInk's fbink_input_scan) - local ok, FBInkInput = pcall(ffi.loadlib, "fbink_input") + local ok, FBInkInput = pcall(ffi.loadlib, "fbink_input", 1) if not ok then + print("fbink_input not loaded:", FBInkInput) -- NOP fallback for the testsuite... FBInkInput = { fbink_input_scan = function() end } end diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 937a71d00..701fd500a 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -862,8 +862,9 @@ function Kobo:init() self:initEventAdjustHooks() -- Auto-detect input devices (via FBInk's fbink_input_scan) - local ok, FBInkInput = pcall(ffi.loadlib, "fbink_input") + local ok, FBInkInput = pcall(ffi.loadlib, "fbink_input", 1) if not ok then + print("fbink_input not loaded:", FBInkInput) -- NOP fallback for the testsuite... FBInkInput = { fbink_input_scan = NOP } end diff --git a/plugins/externalkeyboard.koplugin/main.lua b/plugins/externalkeyboard.koplugin/main.lua index fa42aa322..a206d2dd6 100644 --- a/plugins/externalkeyboard.koplugin/main.lua +++ b/plugins/externalkeyboard.koplugin/main.lua @@ -291,7 +291,7 @@ end) local function findKeyboards() local keyboards = {} - local FBInkInput = ffi.loadlib("fbink_input") + local FBInkInput = ffi.loadlib("fbink_input", 1) local dev_count = ffi.new("size_t[1]") local devices = FBInkInput.fbink_input_scan(C.INPUT_KEYBOARD, 0, 0, dev_count) if devices ~= nil then @@ -312,7 +312,7 @@ end local function checkKeyboard(path) local keyboard - local FBInkInput = ffi.loadlib("fbink_input") + local FBInkInput = ffi.loadlib("fbink_input", 1) local dev = FBInkInput.fbink_input_check(path, C.INPUT_KEYBOARD, 0, 0) if dev ~= nil then if dev.matched then