summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/NanoEvent.ck5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/NanoEvent.ck b/lib/NanoEvent.ck
index 17dec49..6699d96 100644
--- a/lib/NanoEvent.ck
+++ b/lib/NanoEvent.ck
@@ -79,7 +79,10 @@ public class NanoEvent extends Event {
msg.data1 & 0xF0 => int cmd;
msg.data2 => CCId;
- __controlToName[scene][CCId] @=> control;
+ if (__controlToName[scene] != null)
+ __controlToName[scene][CCId] @=> control;
+ else
+ "" @=> control;
if (control == "") {
<<< "Unknown controller", CCId >>>;
CCId => Std.itoa @=> control;