*
This commit is contained in:
parent
bb6b4f15d8
commit
70fa2b420f
@ -31,22 +31,20 @@ function Commander (ronin) {
|
|||||||
this.hide()
|
this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.cache = ''
|
||||||
this._current_txt = ''
|
|
||||||
|
|
||||||
this.run = (txt = this._input.value) => {
|
this.run = (txt = this._input.value) => {
|
||||||
if (txt.indexOf('$') > -1) { ronin.log('Present: $'); return }
|
if (txt.indexOf('$') > -1) { ronin.log('Present: $'); return }
|
||||||
this._current_txt = txt;
|
this.cache = txt
|
||||||
|
if (ronin.always !== true) {
|
||||||
if ( ronin.always !== true ) {
|
ronin.surface.maximize()
|
||||||
ronin.surface.maximize()
|
ronin.interpreter.run(this.cache)
|
||||||
ronin.interpreter.run(this._current_txt)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loop = () => {
|
this.loop = () => {
|
||||||
ronin.surface.maximize()
|
ronin.surface.maximize()
|
||||||
ronin.interpreter.run(this._current_txt)
|
ronin.interpreter.run(this.cache)
|
||||||
ronin.always === true && requestAnimationFrame(() => this.loop())
|
ronin.always === true && requestAnimationFrame(() => this.loop())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ function Library (ronin) {
|
|||||||
return arg
|
return arg
|
||||||
}
|
}
|
||||||
|
|
||||||
this.log = (arg) => {
|
this.debug = (arg) => {
|
||||||
console.log(arg)
|
console.log(arg)
|
||||||
return arg
|
return arg
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ function Osc (ronin) {
|
|||||||
})
|
})
|
||||||
udpPort.on('message', this.onMsg)
|
udpPort.on('message', this.onMsg)
|
||||||
udpPort.open()
|
udpPort.open()
|
||||||
ronin.log('OSC','Started.')
|
ronin.log('OSC', 'Started.')
|
||||||
}
|
}
|
||||||
|
|
||||||
this.onMsg = (msg, timeTag, info) => {
|
this.onMsg = (msg, timeTag, info) => {
|
||||||
|
@ -1 +1 @@
|
|||||||
(log (of (osc "/a") 0 "value"))
|
(debug (of (osc "/a") :0 :value))
|
Loading…
x
Reference in New Issue
Block a user