I wrote a simple program and register the 'hede' at startup, in the
notification handler, I put some code like following:
EventType* eventP = (Event *)event->notifyDetailsP;
type = eventP.eType;
type = swapByte( type ); //swap low and high byte due to hede's
endianess
switch( type )
{
case sysNotifySleepRequestEvent:
StrCopy( str, "sysNotifySleepRequestEvent" );
case sysNotifyLateWakeupEvent:
StrCopy( str, "sysNotifyLateWakeupEvent" );
case sysNotifyKeyDownEvent:
StrCopy( str, "sysNotifyKeyDownEvent" );
.
.
.
}
My programe will write down every notifycation it get through hede
notification,after one day observation, I found most event I get through
hede is keydown event.
I notice there will only be "vchrAutoOff, vchrPowerOff , etc before
the system goes to sleep, other than sysNotifySleepRequestEvent and
sysNotifySleepNotifyEvent.
The system doesn't fire up these event ? Or these event aren't
broardcast using hede ?
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/