kernel events handle in own func
This commit is contained in:
parent
639392c6de
commit
2402eb1a44
@ -138,6 +138,11 @@ class KernelEvents {
|
||||
|
||||
var eventName:String = event[1];
|
||||
|
||||
fireSignal(eventName,event);
|
||||
}
|
||||
}
|
||||
|
||||
private function fireSignal(eventName: String,event:Table<Int, Dynamic> ) {
|
||||
switch eventName {
|
||||
case "alarm":
|
||||
this.onAlarmTrigger.trigger(event[2]);
|
||||
@ -211,7 +216,6 @@ class KernelEvents {
|
||||
Log.error("Unknown cc event: " + eventName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static function ccButtonToEnum(button:Dynamic):ButtonType {
|
||||
switch button {
|
||||
|
Loading…
Reference in New Issue
Block a user