I implemented this code.
void ClearEventQueue(void){
EventType event;
while (EvtEventAvail())
EvtGetEvent(&event,1);
}
Alexandre
2005/6/27, Robert Moynihan <[EMAIL PROTECTED]>:
Alexandre Umino (Spin) wrote:
> Hi list
>
> How can I do to clear the events?
> In my application, I need that the events will be erased. The user can
> click any button, but only one event is create. Any idea?
>
> Thank's
>
> Alexandre
> -- For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
Sure.... do something like this to clear out the evt queue...
while (EvtEventAvail())
EvtGetEvent();
...that code is not complete, but it gives the idea.
Bob
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
