Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for sendOSC - docs don't match code #40

Open
erikmack opened this issue Feb 6, 2017 · 0 comments
Open

API for sendOSC - docs don't match code #40

erikmack opened this issue Feb 6, 2017 · 0 comments

Comments

@erikmack
Copy link

erikmack commented Feb 6, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant