I just posted a mail that covers this to a degree.
Here:
if( ChrIsHardKey( event->data.keyDown.chr == hard1Chr ))
{
hardKeyState = KeyCurrentState( ) & ( hardkey1 )
SetFieldTextFromStr( OutputField, "Key 1" );
}
There are really good examples of manipulating the hard keys
in several apps that come with complete source with CodeWarrior:
HardBall, Reptoids, Subhunt are all good examples.
-Rus
>-----Original Message-----
>From: Herve Groleas [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 29, 2000 8:26 AM
>To: Palm Developer Forum
>Subject: Use the hard keys in an app
>
>
>How can i modify the use of the hard keys in an application ?
>There is a macro which tells if it is or not a hard key. Good !
>But i'd like to know which hard key has been pressed.
>Can the screenX and screenY values of the evenP be used ?
>
>Thanx for your help !
>
>Herve
>
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/