walkinglint
2008年07月10日 14:16
//そうそう ハノイの塔
// File: doubleclick.lsl
// Date Author number of nodes
// 2008/7/10 walkinglint 16
// 2008/7/9 walkinglint 16
//
// http://forums.secondlife.com/showthread.php?t=158763
nteger poke = FALSE;
default {
touch_start(integer x) {
if (poke) {
llSetTimerEvent(0);
poke = FALSE;
llOwnerSay("double clicked");
} else {
poke = TRUE;
// change this depending on how fast you give them to click again
llSetTimerEvent(0.5);
}
}
timer() {
llSetTimerEvent(0);
poke = FALSE;
llOwnerSay("single clicked");
}
}