Widget.pressed is now a table of booleans keyed by mouse button name

This commit is contained in:
airstruck
2015-12-20 01:13:43 -05:00
parent 1ee239b203
commit 73e9a10b15
5 changed files with 13 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ return {
width = 48,
height = 48,
slices = function (self)
if self.focused or self.hovered or self.pressed then
if self.focused or self.hovered or self.pressed.left then
return nil -- fall back to theme default
end
return false -- no slices