diff options
author | Matthias Richter <vrld@vrld.org> | 2012-12-15 15:58:52 +0100 |
---|---|---|
committer | Matthias Richter <vrld@vrld.org> | 2012-12-15 15:58:52 +0100 |
commit | faa295651a86a9989bcafaecfa6b814694a72248 (patch) | |
tree | 0fd7cd55555115a8370880b825e2172fae95cf63 /mouse.lua | |
parent | c85a877dcc03e8458be595a02d73f3a3839265fd (diff) | |
download | Quickie-faa295651a86a9989bcafaecfa6b814694a72248.tar.gz Quickie-faa295651a86a9989bcafaecfa6b814694a72248.tar.bz2 Quickie-faa295651a86a9989bcafaecfa6b814694a72248.tar.xz Quickie-faa295651a86a9989bcafaecfa6b814694a72248.zip |
Add gui.keyboard.getFocus() and gui.mouse.getHot()
Diffstat (limited to 'mouse.lua')
-rw-r--r-- | mouse.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -40,6 +40,7 @@ local function setHot(id) hot = id end local function setActive(id) active = id end local function isHot(id) return id == hot end local function isActive(id) return id == active end +local function getHot() return hot end local function updateWidget(id, pos, size, hit) hit = hit or _M.widgetHit @@ -85,6 +86,7 @@ end _M = { widgetHit = widgetHit, setHot = setHot, + getHot = getHot, setActive = setActive, isHot = isHot, isActive = isActive, |