There is no 'powerOnEvent' or the like. The only way to do this is like so, in your EventLoop() routine:
if (! SysHandleEvent(&event)) {
if (! MenuHandleEvent(0, &event, &error))
if (! AppHandleEvent(&event))
FrmDispatchEvent(&event);
}
else { // the system handled it!
if (event.eType == keyDownEvent) {
// check for power off and call a poweron callback after we return...
if ( (event.data.keyDown.modifiers & commandKeyMask ) &&
( (event.data.keyDown.chr == autoOffChr) || (event.data.keyDown.chr == hardPowerChr) ) )
JustPoweredOnCallback();
}
}
Hope that helps.
Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293
I am trying to detect when the power mode leaves the sleep mode while in my application.
(when the palm wakes up after a auto-power off or when the user "turns off" the palm)
I can not find any "power on" events to trap. Is there such an animal?
Does anyone have any ideas.
Thanks
Howard Freeman
Hub Inc.
