From 64601ffe3b4ddacc22866e14bb8f2c7c4eb2618d Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Tue, 4 Nov 2014 09:56:04 +0100 Subject: [PATCH] add wrapper for FFI input.open() --- frontend/device/input.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/device/input.lua b/frontend/device/input.lua index a1e5d6216..0a46ceca0 100644 --- a/frontend/device/input.lua +++ b/frontend/device/input.lua @@ -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.