> //1st Event > actioN1_cf_(); > > //I am assuming this puts a 50sec wait before the 2nd event gets executed. > EvtGetEvent (&event, 50); > > //2nd Event > actionN2_cf_();
The second parameter to EvtGetEvent is a timeout. If no event is in the queue, and none is added before the timeout, EvtGetEvent will return a nilEvent when the timeout expires. If an event is in the queue, or one is added before the timeout, that event is returned, either immediately, or when the event is added to the queue. So your assumption is incorrect. Take a look at EventLoop() and TimeToWait() in Datebook.c and at nilEvent case in DayViewHandleEvent() in DateDay.c to see how Datebook updates the time. Or look at how some of the sample games do animation. Or check the Knowledge Base. -- Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
