[haiku-appserver] Re: progress and status

  • From: Stefano Ceccherini <burton666@xxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: 18 May 2005 11:56:09 -0000

>       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
} while (buttons != 0);


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!

Other related posts: