-- EFL LuaJIT bindings: efl_input_interface.eo (class Efl.Input.Interface)
-- For use with Elua; automatically generated, do not modify

local cutil = require("cutil")
local util  = require("util")
local ffi   = require("ffi")
local eo    = require("eo")

local M, __lib = ...

local __class
local __body

local init = function()
    __class = __lib.efl_input_interface_interface_get()
    eo.class_register("Efl_Input_Interface", nil, nil, __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *efl_input_interface_interface_get(void);
    extern const Eo_Event_Description _EFL_EVENT_POINTER_MOVE;
    extern const Eo_Event_Description _EFL_EVENT_POINTER_DOWN;
    extern const Eo_Event_Description _EFL_EVENT_POINTER_UP;
    extern const Eo_Event_Description _EFL_EVENT_POINTER_CANCEL;
    extern const Eo_Event_Description _EFL_EVENT_POINTER_IN;
    extern const Eo_Event_Description _EFL_EVENT_POINTER_OUT;
    extern const Eo_Event_Description _EFL_EVENT_POINTER_WHEEL;
    extern const Eo_Event_Description _EFL_EVENT_KEY_DOWN;
    extern const Eo_Event_Description _EFL_EVENT_KEY_UP;
    extern const Eo_Event_Description _EFL_EVENT_HOLD;
]]

local __M = util.get_namespace(M, { "input" })
__body = {
    __events = {
        ["pointer,move"] = __lib._EFL_EVENT_POINTER_MOVE,
        ["pointer,down"] = __lib._EFL_EVENT_POINTER_DOWN,
        ["pointer,up"] = __lib._EFL_EVENT_POINTER_UP,
        ["pointer,cancel"] = __lib._EFL_EVENT_POINTER_CANCEL,
        ["pointer,in"] = __lib._EFL_EVENT_POINTER_IN,
        ["pointer,out"] = __lib._EFL_EVENT_POINTER_OUT,
        ["pointer,wheel"] = __lib._EFL_EVENT_POINTER_WHEEL,
        ["key,down"] = __lib._EFL_EVENT_KEY_DOWN,
        ["key,up"] = __lib._EFL_EVENT_KEY_UP,
        ["hold"] = __lib._EFL_EVENT_HOLD
    }
}
__body["__iface_Efl_Input_Interface"] = true

return M
