diff options
Diffstat (limited to 'not')
-rw-r--r-- | not/Demultiplexer.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/not/Demultiplexer.lua b/not/Demultiplexer.lua index 468f007..ee6cbc9 100644 --- a/not/Demultiplexer.lua +++ b/not/Demultiplexer.lua @@ -53,11 +53,15 @@ function Demultiplexer:update (dt) end function Demultiplexer:controlpressed (set, action, key) - self:callOne(set, "controlpressed", set, action, key) + if self.focused then + self:callOne(set, "controlpressed", set, action, key) + end end function Demultiplexer:controlreleased (set, action, key) - self:callOne(set, "controlreleased", set, action, key) + if self.focused then + self:callOne(set, "controlreleased", set, action, key) + end end return Demultiplexer |