mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-01-05 01:51:02 +07:00
26 lines
470 B
Lua
26 lines
470 B
Lua
---@class touchable
|
|
local touchable = {
|
|
---@type boolean
|
|
enabled = true,
|
|
|
|
---@type boolean
|
|
disabled = false,
|
|
|
|
---@type boolean
|
|
touched = false,
|
|
|
|
---@type boolean
|
|
under_mouse = false
|
|
}
|
|
|
|
---@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
|