Page 1 of 1

flushevent() in Palm OS PocketC???

PostPosted: Thu Sep 18, 2008 7:24 pm
by Yamagushi
I need a code like flushevent() that will clear the event queue. PocketCE PocketC can use the flushevent command, Palm PocketC can't. Can anyone please help me, this is driving me nuts...

Re: flushevent() in Palm OS PocketC???

PostPosted: Fri Sep 19, 2008 12:38 am
by samps
Would a calling a loop like this do what you have in mind.

It keeps taking events from the stack until the return code turns to '0', no more events.

Code: Select all
while ( event(0) 1!= 0 ) ;


Samps

Re: flushevent() in Palm OS PocketC???

PostPosted: Fri Sep 19, 2008 12:57 am
by Yamagushi
while(event(0) != 0); worked perfectly ^_^ much love brotha