Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

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

@erikmack

Description

@erikmack

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions