Add gui.mouse.disable(), gui.mouse.enable()
This commit is contained in:
parent
24c3cc18c5
commit
c85a877dcc
1 changed files with 15 additions and 0 deletions
15
mouse.lua
15
mouse.lua
|
@ -70,6 +70,18 @@ local function endFrame()
|
|||
end
|
||||
end
|
||||
|
||||
local function disable()
|
||||
--_M.beginFrame = nothing
|
||||
--_M.endFrame = nothing
|
||||
--_M.isHot = isHot,
|
||||
--_M.isActive = isActive,
|
||||
_M.updateWidget = function() end
|
||||
end
|
||||
|
||||
local function enable()
|
||||
_M.updateWidget = updateWidget
|
||||
end
|
||||
|
||||
_M = {
|
||||
widgetHit = widgetHit,
|
||||
setHot = setHot,
|
||||
|
@ -81,6 +93,9 @@ _M = {
|
|||
|
||||
beginFrame = beginFrame,
|
||||
endFrame = endFrame,
|
||||
|
||||
disable = disable,
|
||||
enable = enable,
|
||||
}
|
||||
|
||||
-- metatable provides getters to x, y and down
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue