Add gui.keyboard.getFocus() and gui.mouse.getHot()

This commit is contained in:
Matthias Richter 2012-12-15 15:58:52 +01:00
parent c85a877dcc
commit faa295651a
2 changed files with 9 additions and 5 deletions

View file

@ -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,