From faa295651a86a9989bcafaecfa6b814694a72248 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Sat, 15 Dec 2012 15:58:52 +0100 Subject: Add gui.keyboard.getFocus() and gui.mouse.getHot() --- mouse.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mouse.lua') diff --git a/mouse.lua b/mouse.lua index 16b645a..7d08f8b 100644 --- a/mouse.lua +++ b/mouse.lua @@ -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, -- cgit v1.2.3-54-g00ecf