Control icon indicating copy to clipboard operation
Control copied to clipboard

API for sendOSC - docs don't match code

Open erikmack opened this issue 9 years ago • 0 comments

On the MultiButton docs page: "ontouchstart": "oscManager.sendOSC('/button', 'ii', this.childID, this.value)",

which (on Android at least) results in no message being received. The code that works: "ontouchstart": "oscManager.sendOSC(['/button', 'ii', this.childID, this.value])",

which matches the interface OSCManager.prototype.sendOSC = function(msg, successCallback, failureCallback) (though supplying only the first arg).

https://github.com/charlieroberts/Control/blob/master/Android/Control/assets/www/js/OSCManager.js#L10

The "Scripting" docs page makes the same error. Of course, it's possible that the docs are right but the Android code is wrong.

Thanks for Control!

erikmack avatar Feb 06 '17 05:02 erikmack