mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
32 lines
557 B
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
|