You need to define a custom event to handle a wake up...
Here is how I do that for sending an event at the press
of the power key (power on) which only sends a nilEvent
so I needed another event type to act upon....
// global definition
#define WakeUpEvent ( firstUserEvent )
// defined within func()
EventType customEvent; // for wake up...
// hit to power off
case 520: // POWER KEY!! you only get this when powered up and hittin
customEvent.eType = WakeUpEvent; // set our custom event
EvtAddEventToQueue( &customEvent ); // toss it out
break;
// acted upon when powered up...
if (eventP->eType == firstUserEvent ){
SysSetAutoOffTime (0); handled=true;
return handled;}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/