From 727a4f0996383031c02977e448b15b8e83b6a9ad Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 4 Sep 2017 03:55:52 +0200 Subject: Renamed demux method --- not/Demultiplexer.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'not') diff --git a/not/Demultiplexer.lua b/not/Demultiplexer.lua index ee6cbc9..c2b2272 100644 --- a/not/Demultiplexer.lua +++ b/not/Demultiplexer.lua @@ -24,7 +24,7 @@ end -- @param set controller set -- @param func key of function to call -- @param ... parameters passed to function -function Demultiplexer:callOne (set, func, ...) +function Demultiplexer:callWithSet (set, func, ...) for i,test in ipairs(Controller.getSets()) do if test == set then self.children[i][func](...) @@ -54,13 +54,13 @@ end function Demultiplexer:controlpressed (set, action, key) if self.focused then - self:callOne(set, "controlpressed", set, action, key) + self:callWithSet(set, "controlpressed", set, action, key) end end function Demultiplexer:controlreleased (set, action, key) if self.focused then - self:callOne(set, "controlreleased", set, action, key) + self:callWithSet(set, "controlreleased", set, action, key) end end -- cgit v1.1