I wrote (somewhat earlier) about the Rocker Center button:
>Wrong. I have been looking at this myself and asking the same 
>questions. I can find no notification nor launch code when this button is 
>pressed. Nor is there anything in the KeyCurrentState. Even if you did 
>handle it (as I have handled the other HardKeys in one of my apps) there 
>is still no (obvious) way of preventing the device from performing the 
>default action for that key.

I mis-stated when I said that KeyCurrentState had nothing to indicate the 
Rocker Center had been pressed (after late wakeup notification).  In fact 
keyBitRockerCenter (#x4000000) is set.  Also, the event queue has a KeyDown 
event with chr=vchrPalmRocker, keyCode=vkcPalmCenter, and a modifier with the 
commandKeyMask set.  If you wish to launch an application in response to the 
Rocker Center, just pop the KeyDownEvent off the event queue, enqueue a 
ResetAutoOff event (to prevent the Palm from sleeping), launch the app that you 
want to run.  (Of course, the PDA won't automatically sleep when the app has 
finished.)

John
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to