Unfortunately, I don't know why it's not working for you either.
I did this on a T2 and a T3 without any problems with the 5-way navigator button.
There's always looking at the bits of the event structure itself like the eventP->data.keyDown.keyCode and eventP->data.keyDown.chr bits to see what are set.
Lorraine
At 04:16 PM 10/14/2004 -0400, you wrote:
Hi Chin,
It is still not working for me!
Following is what I am doing. And every time it prints "U r in!" message no matter what key of the keyboard I press.
case keyDownEvent:
if (NavSelectPressed(eventP)) { FrmCustomAlert(ErrorAlert,"U did it!", NULL, NULL); } if (NavDirectionPressed(eventP, Down)) { FrmCustomAlert(ErrorAlert,"Humm..!", NULL, NULL); }
FrmCustomAlert(ErrorAlert,"U r in!", NULL, NULL); break;
Do I need to do any additional thig to make this work? I really don't know where I am making mistake.
Try to help, Thsnks, Keyur
-----Original Message----- From: Lorraine Chin [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 4:57 PM To: Palm Developer Forum Subject: RE: Center key event!
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
--
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/
