well, my personal favorite to solve this problem is:
int currentclick = 0;
void currentClick() {
switch(dbMouseClick()) {
if(dbMouseClick() != 0) {
if(currentclick == 0) {
currentclick = dbMouseClick();
}
else {
currentclick = 0;
}
}
else {
currentclick = 0;
}
}
run the function at the start of you while ( LoopGDK ( ) ), and instead of calling dbMouseClick == x, check currentclick == x. works fine for me.
-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.