summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-05 02:49:17 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-05 02:49:17 +0200
commit328d649ec9b351dcd9dc1f43d22b3aa587dc65e9 (patch)
tree6e6ae05532742465f69e50d0f53afaf95f25951a
parent800ce59a86b62a93cf3347991ec1b7dbcb2f77e9 (diff)
downloaddigitale-debutanten-328d649ec9b351dcd9dc1f43d22b3aa587dc65e9.tar.gz
removed map array access workaround
fixed ChucK to handle them correctly
-rw-r--r--lib/NanoEvent.ck6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/NanoEvent.ck b/lib/NanoEvent.ck
index 29ad07a..17dec49 100644
--- a/lib/NanoEvent.ck
+++ b/lib/NanoEvent.ck
@@ -79,7 +79,7 @@ public class NanoEvent extends Event {
msg.data1 & 0xF0 => int cmd;
msg.data2 => CCId;
- (__controlToName[scene])[CCId] @=> control;
+ __controlToName[scene][CCId] @=> control;
if (control == "") {
<<< "Unknown controller", CCId >>>;
CCId => Std.itoa @=> control;
@@ -120,11 +120,11 @@ public class NanoEvent extends Event {
fun static void
registerControl(string sceneName, int id, string controlName)
{
- if ((__controlToName[sceneName])[id] != "")
+ if (__controlToName[sceneName][id] != "")
<<< "Warning: Already registered control", id,
"on scene", sceneName >>>;
- controlName @=> (__controlToName[sceneName])[id];
+ controlName @=> __controlToName[sceneName][id];
}
}
/* static initialization */