After you get the keyDownEvent, NavSelectPressed should work because that is how I am doing it. You can also test for left, right, up and down.


switch (eventP->eType)
 {
        case keyDownEvent:
                if (NavSelectPressed(eventP))
                {

                }
                if (NavDirectionPressed(eventP, Down))
                {

                }
}

Lorraine

the At 04:30 PM 10/13/2004 -0400, you wrote:
Hi Chin,

Thanks for ur reply.

Inside the event handler function of a form I tried,
if(NavSelectPressed(eventP)) {........}
but it doesn't perform the action I am writing in the if block.

As the above thing didn't work, I also tried putting the same if block
inside the KeyDownEvent but no luck with it either.

Can u provide me with some more info about how I should implement it?

Thanks,
Keyur.


-----Original Message----- From: Lorraine Chin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 2:13 PM To: Palm Developer Forum Subject: Re: Center key event!


I include the PalmNavigator.h header file and use their macros like, if (NavSelectPressed(eventP)) to determine if the center button was pressed.

Lorraine

At 02:12 PM 10/13/2004 -0400, you wrote:

>Hi guys,
>
>I want to capture the "key press event" for the center key of 5 way
>navigation.
>
>So far I have just controlled the KeyDownEvent in general. So, I don't know
>if the center button has a separate event for it or it is part of the same
>event with separate keycode.
>
>Please reply,
>Keyur
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/support/forums/


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



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


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

Reply via email to