Files
enduro2d/samples/bin/library/scripts/emmy/components/touchable.lua

32 lines
557 B
Lua

---@class touchable
local touchable = {
---@type boolean
enabled = true,
---@type boolean
disabled = false,
---@type boolean
touched = false,
---@type boolean
under_mouse = false,
---@type boolean
bubbling = true,
---@type boolean
capturing = true
}
---@overload fun(self: touchable)
---@param self touchable
function touchable.enable(self) end
---@overload fun(self: touchable)
---@param self touchable
function touchable.disable(self) end
---@type touchable
_G.touchable = _G.touchable or touchable