>
> When do you know you have the latest event? When can >you stop
>calling GetMouse()?
When you want. But usually, when buttons == 0;
Have a look at the BButton's polling loop for more info, but usually you do
something like (in MouseDown()):
BPoint where;
ulong buttons;
do {
GetMouse(&where, &buttons);
// Your code here
snooze(30000);
} while (buttons != 0);
done!
Stefano Ceccherini aka Jack Burton
---------------------------------------------------------------
Scegli il tuo dominio preferito e attiva la tua email! Da oggi
l'eMail di superEva e' ancora piu' veloce e ricca di funzioni!
http://webmail.supereva.it/new/
---------------------------------------------------------------