Deal with this nonsense while I'm in there...

reviewable/pr11807/r4
NiLuJe 3 weeks ago
parent 9e301b910b
commit 454050706b

@ -352,8 +352,7 @@ end
-- Wrappers for the custom FFI implementations with no concept of paths or fd
if input.is_ffi then
-- None of the current implementations actually *take* any arguments...
-- (Or they think they do, but they don't... Lookin' at you, PB).
-- Pass args as-is. None of 'em actually *take* arguments, but some may be invoked as methods...
function Input.open(...)
return input.open(...)
end

@ -57,8 +57,6 @@ local PocketBook = Generic:extend{
keymap = { [scan] = event },
}]]
-- Runtime state: whether raw input is actually used
--- @fixme: Never actually set anywhere?
is_using_raw_input = nil,
-- InkView may have started translating button codes based on rotation on newer devices...
-- That historically wasn't the case, hence this defaulting to false.
@ -242,8 +240,7 @@ function PocketBook:init()
-- NOTE: This all happens in ffi/input_pocketbook.lua
self._model_init()
--- @fixme: ffi/input_pocketbook's open implementation doesn't actually take any argument, it pokes at self.raw_input via self instead...
if (not self.input.raw_input) or (not pcall(self.input.open, self.input, self.raw_input)) then
if (not self.input.raw_input) or (not pcall(self.input.open, self.input)) then
inkview.OpenScreen()
-- Raw mode open failed (no permissions?), so we'll run the usual way.
-- Disable touch coordinate translation as inkview will do that.

Loading…
Cancel
Save