Button Listener called twice
Posted: Wed Feb 17, 2016 3:46 pm
If I add a Button with var name "CmdTest", toggle button = false, and place following code in a library
the function is called twice, if I hold the button down for a short delay. Doesn't seem to occur for state=0.
Maynard
Code: Select all
global count =0;
global CmdTest= function(state) {
if(state==1) {
print("down " ,count);
global count = count+ 1;
}
};
Maynard