use "null" value to send osc messages without any argument

This commit is contained in:
jean-emmanuel 2016-03-28 18:21:57 +02:00
parent 4aa27b07a3
commit abdec11094
2 changed files with 8 additions and 8 deletions

View file

@ -5,15 +5,15 @@ Buttons are exactly what you think they are.
## toggle
```js
type:'toggle',
on: 1, // [string|number|false] value sent when toggle is on (false to prevent sending )
off:0, // [string|number|false] value sent when toggle is off (false to prevent sending )
on: 1, // [string|number|false|null] value sent when toggle is on (false to prevent sending, null to send no arg)
off:0, // [string|number|false|null] value sent when toggle is off (false to prevent sending, null to send no arg)
```
## push
```js
type:'push',
on: 1, // [string|number|false] value sent when toggle is on (false to prevent sending )
off:0, // [string|number|false] value sent when toggle is off (false to prevent sending )
on: 1, // [string|number|false|null] value sent when toggle is on (false to prevent sending, null to send no arg)
off:0, // [string|number|false|null] value sent when toggle is off (false to prevent sending, null to send no arg)
```
## switch