Try:
if ((event.eType == keyDownEvent) && (event.data.keyDown.modifiers &
poweredOnKeyMask)) {
/* key turned on the device */
}
[EMAIL PROTECTED] wrote:
>
> My applications use the physical (application) buttons for special
> operations. When the Palm turns itself off, if you press the
> application buttons, the Palm turns itself back on, and then sends
> the button to my app as usual.
>
> Some users have asked that if the unit turns off, then pressing the
> application buttons should do their usual operation (switch to the
> other application).
>
> * Is there an easy way to find out if the unit was just turned on
> due to the application buttons being pressed, so I can avoid
> handling the application buttons in that case?
>
> Thanks,
> Brad Myers