In your AppEventLoop(void) function, you can cath the nilEvent which means
your app is idling, and then poll your routine :
static void AppEventLoop(void)
{
EventType event;
do {
EvtGetEvent(&event, _MSGLOOP_DELAY); // typically,
_MSGLOOP_DELAY = 10 ...
if ( event.eType == nilEvent ) {
// do some polling here ....
}
if (! SysHandleEvent(&event))
if (! MenuHandleEvent(0, &event, &error))
if (! AppHandleEvent(&event))
FrmDispatchEvent(&event);
} while (event.eType != appStopEvent);
}
Bruno Carrez
----- Original Message -----
From: Palm Programming <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 20, 1999 6:41 AM
Subject: viewIdleScript in Palm OS?
> i'm writing a game and need to have a routine periodically called at a
> regular interval. On the newton OS, I used to accomplish this by using a
> viewIdleScript, which I could tell the newton to call every so many ticks
> of the clock. How can one accomplish this type of periodic call on the
> Palm OS? Thanks.
>
> Steve Weintraut
> [EMAIL PROTECTED]
>