switchers: switchers state can"t be send over osc as is, so we just send it for clients sync
This commit is contained in:
parent
29f80ae2bd
commit
5a38a928bc
1 changed files with 14 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
var _widgets_base = require('../common/_widgets_base'),
|
||||
{widgetManager} = require('../../managers'),
|
||||
{stateSet} = require('../../actions'),
|
||||
osc = require('../../osc')
|
||||
var osc = require('../../osc')
|
||||
|
||||
|
||||
module.exports = class _switchers_base extends _widgets_base {
|
||||
|
|
@ -108,4 +108,17 @@ module.exports = class _switchers_base extends _widgets_base {
|
|||
|
||||
}
|
||||
|
||||
sendValue() {
|
||||
|
||||
var args = this.widgetData.preArgs.concat(this.value)
|
||||
|
||||
osc.send({
|
||||
target:this.widgetData.target,
|
||||
address:this.widgetData.address,
|
||||
args:args,
|
||||
syncOnly:true
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue