Im still new to this GDK thing, so heres a shot in the dark:
// up condition of mouse button
bool g_bMouseUp = false;
// how long has mouse button been pressed
float g_fMouseTimer = 0;
void DarkGDK (void) {
while (LoopGDK()) {
// check to see if button is clicked
if (dbMouseClick() == 1)
// as the button is held a timer is added
g_fMouseTimer++;
else
// if no button is being held, check to see how long it was held
// if long enough, set the MouseUp to true
if (g_fMouseTimer > 5.0f)
g_bMouseUp = true;
// otherwise set it to false, so it doesnt stay on
else
g_bMouseUp = false;
// reset our mouse timer
g_fMouseTimer = 0.0f;
}
}
}
I dont know if this would work, I havent tried it or anything. Just kinda popped in my head when I read your post