Ingreso rápido:  

Forum: General Discussion

Tema: Need help ... Scripting .. down ? or up ?
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?
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 ?
 

Mensajes Sat 22 Jan 22 @ 11:51 pm
locoDogPRO InfinityModeratorMember since 2013
leds don't have a down/up state, query what the button does.
 

Mensajes Sun 23 Jan 22 @ 12:47 am