|
|
|
@ -866,13 +866,14 @@ function Kobo:init()
|
|
|
|
|
for i = 0, tonumber(dev_count[0]) - 1 do
|
|
|
|
|
local dev = devices[i]
|
|
|
|
|
if dev.matched then
|
|
|
|
|
local path = ffi.string(dev.path)
|
|
|
|
|
-- We need to single out whichever device provides pagination buttons or sleep cover events, as we'll want to tweak key repeat there...
|
|
|
|
|
if bit.band(dev.type, C.INPUT_PAGINATION_BUTTONS) ~= 0 or bit.band(dev.type, C.INPUT_SLEEP_COVER) ~= 0 then
|
|
|
|
|
logger.dbg("Opening (ntx_fd) input device", ffi.string(dev.name), "@", ffi.string(dev.path))
|
|
|
|
|
self.ntx_fd = self.input.open(dev.path)
|
|
|
|
|
logger.dbg("Opening (ntx_fd) input device", ffi.string(dev.name), "@", path)
|
|
|
|
|
self.ntx_fd = self.input.open(path)
|
|
|
|
|
else
|
|
|
|
|
logger.dbg("Opening input device", ffi.string(dev.name), "@", ffi.string(dev.path))
|
|
|
|
|
self.input.open(dev.path)
|
|
|
|
|
logger.dbg("Opening input device", ffi.string(dev.name), "@", path)
|
|
|
|
|
self.input.open(path)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|