mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add wrapper for FFI input.open()
This commit is contained in:
@@ -128,6 +128,16 @@ function Input:init()
|
||||
self.event_map[10021] = "NotCharging"
|
||||
end
|
||||
|
||||
--[[
|
||||
wrapper for FFI input open
|
||||
|
||||
Note that we adhere to the "." syntax here for compatibility.
|
||||
TODO: clean up separation FFI/this
|
||||
--]]
|
||||
function Input.open(device)
|
||||
input.open(device)
|
||||
end
|
||||
|
||||
--[[
|
||||
Different device models can implement their own hooks
|
||||
and register them.
|
||||
|
||||
Reference in New Issue
Block a user