Change the way the osc is handled

This commit is contained in:
Devine Lu Linvega
2019-07-22 11:27:42 +09:00
parent 4ee834bdb6
commit 605dd1fb9e
3 changed files with 16 additions and 14 deletions

View File

@@ -17,7 +17,8 @@ function Osc (ronin) {
}
this.onMsg = (msg, timeTag, info) => {
this.msg[msg.address] = msg.args
// ronin.log(`${info.address}:${info.port} > ${msg.args}`, info)
if (ronin.bindings[msg.address]) {
ronin.bindings[msg.address](msg.args)
}
}
}