summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-04 03:55:52 +0200
committerAki <nthirtyone@gmail.com>2017-09-04 03:55:52 +0200
commit727a4f0996383031c02977e448b15b8e83b6a9ad (patch)
tree28de7b99116ed9d807a5ca6ff039a3ae7537c92c
parentea71f94e6c7f4727393063d1324b70d7bbf4922f (diff)
downloadroflnauts-727a4f0996383031c02977e448b15b8e83b6a9ad.zip
roflnauts-727a4f0996383031c02977e448b15b8e83b6a9ad.tar.gz
roflnauts-727a4f0996383031c02977e448b15b8e83b6a9ad.tar.bz2
Renamed demux method
-rw-r--r--not/Demultiplexer.lua6
1 files changed, 3 insertions, 3 deletions
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