This allows you to get double clicks from a user. makes interfaces a bit easier to create! warning.. in laggy areas this may not be too good to use.
Enjoy!
CODE
integer poke = FALSE;
default
{
touch_start(integer x)
{
if(poke){
llSetTimerEvent(0);
poke = FALSE;
//double clicked
}
else{
poke = TRUE;
llSetTimerEvent(0.5);//change this depending on how fast you give them to click again
}
}
timer()
{
llSetTimerEvent(0);
poke = FALSE;
//single clicked
}
}