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/