add wrapper for FFI input.open()

This commit is contained in:
Hans-Werner Hilse
2014-11-04 09:56:04 +01:00
parent 3eae0cdcb7
commit 64601ffe3b

View File

@@ -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.