One piece of functionality I'd like to add is to have the Rec button toggle the power on and off.
The hard part is knowing, when the Rec button is first pressed, did that just turn the Palm on or was it already on? That would tell me whether I should let the Palm stay on or turn it off.
At first I thought I'd just catch the system startup notification and record the time. If my app was launched > 1 second after the system was started, then the Palm was already on and hitting the REC button should turn it off. Unfortunately, that doesn't work because if you start the Palm using any of the other hardware buttons, it doesn't send either sysNotifyLateWakeupEvent or sysNotifyEarlyWakeupEvent. Since I never get the notification I can't tell when the Palm was turned on.
So then I thought I'd try to do something with poweredOnKeyMask. Again, failure. By the time my app is launched, the keydown event is no longer in the queue. Anyone got any better ideas?
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
