OSCMapperPush:
Filter:
OSCMapper/Classes (extension) | OSCMapper

OSCMapperPush
ExtensionExtension

Receives binary values on OSC address

Description

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.

Class Methods

.new

Arguments:

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.

Instance Methods

.onPress

Set this to a function that will be called on press.

.onRelease

Set this to a function that will be called on release.

.onPush

Set this to a function that will be called on push.

Examples

See OSCMapper: Examples.