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

@@ -23,7 +23,7 @@ return function (self)
local function unpress (event)
if event.button ~= 'left' then return end
thumb.pressed = false -- don't make the thumb appear pushed in
thumb.pressed.left = nil -- don't make the thumb appear pushed in
return false -- don't press thumb on focused keyboard activation
end