I am attempting to set the color in the Led mapping of a button/pad, while it is depressed.
Why does below script with down verb, NOT work?
From the Wiki:
does NOT work also.
-----------------
I know I can create a workaround, by adding the additional action to the button action:
and then have LED mapping as
this creates other issues in my case, and creates more scripting steps, while the more elegant/simpler way of using down ? color 'green' : color 'blue' , seems NOT to work..
What am I missing ?
Why does below script with down verb, NOT work?
down ? color 'green' : color 'blue'
From the Wiki:
isrepeat ? color 'green' : color 'blue'
does NOT work also.
-----------------
I know I can create a workaround, by adding the additional action to the button action:
ORGINAL BUTTON ACTION.....& set 'buttonDown' 1 while_pressed
and then have LED mapping as
var 'buttonDown' ? color 'green' : color 'blue'
this creates other issues in my case, and creates more scripting steps, while the more elegant/simpler way of using down ? color 'green' : color 'blue' , seems NOT to work..
What am I missing ?
Inviato Sat 22 Jan 22 @ 11:51 pm
leds don't have a down/up state, query what the button does.
Inviato Sun 23 Jan 22 @ 12:47 am