From c85a877dcc03e8458be595a02d73f3a3839265fd Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Wed, 10 Oct 2012 15:21:06 +0200 Subject: Add gui.mouse.disable(), gui.mouse.enable() --- mouse.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mouse.lua b/mouse.lua index 75b6e17..16b645a 100644 --- a/mouse.lua +++ b/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 -- cgit v1.2.3-54-g00ecf