This is an OSCMapperElement which is designed for binary values such as buttons, which either are active (1) or inactive (0). See OSCMapper and OSCMapperElement for more information.
altName |
See OSCMapper: *new |
onPress |
A function which will be called when the button is pressed down (from 0->1) |
onRelease |
A function which will be called when the button is released (from 1->0) |
onPush |
A function which will be called on press and release. The first argument is the current value of the button, so 1 or 0. |
Set this to a function that will be called on press.
Set this to a function that will be called on release.
Set this to a function that will be called on push.
See OSCMapper: Examples.