diff options
author | Matthias Richter <vrld@vrld.org> | 2013-01-23 12:38:26 +0100 |
---|---|---|
committer | Matthias Richter <vrld@vrld.org> | 2013-01-23 12:38:26 +0100 |
commit | cb553037e7f4077e08bf19340e0bde826540c433 (patch) | |
tree | 30681f2021688c429b34090a3e337049511ea730 | |
parent | c1d743ddbd84a439cefc6c7d32155ea405e8da4a (diff) | |
download | Quickie-cb553037e7f4077e08bf19340e0bde826540c433.tar.gz Quickie-cb553037e7f4077e08bf19340e0bde826540c433.tar.bz2 Quickie-cb553037e7f4077e08bf19340e0bde826540c433.tar.xz Quickie-cb553037e7f4077e08bf19340e0bde826540c433.zip |
Fully disable mouse module on mouse.disable
-rw-r--r-- | mouse.lua | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -30,6 +30,7 @@ local x,y = 0,0 local down = false local hot, active = nil, nil local NO_WIDGET = {} +local function _NOP_() end local function widgetHit(mouse, pos, size) return mouse[1] >= pos[1] and mouse[1] <= pos[1] + size[1] and @@ -72,14 +73,14 @@ local function endFrame() end local function disable() - --_M.beginFrame = nothing - --_M.endFrame = nothing - --_M.isHot = isHot, - --_M.isActive = isActive, - _M.updateWidget = function() end + _M.beginFrame = _NOP__ + _M.endFrame = _NOP__ + _M.updateWidget = _NOP__ end local function enable() + _M.beginFrame = beginFrame + _M.endFrame = endFrame _M.updateWidget = updateWidget end |