Go to the FreeLists Home Page Home Signup Help Login
 



[haiku-appserver] || [Date Prev] [05-2005 Date Index] [Date Next] || [Thread Prev] [05-2005 Thread Index] [Thread Next]

[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
   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/
---------------------------------------------------------------






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.