OfferKeyEvent()
| Mon, 2005-03-07 05:28 | |
|
Hi all,
Recently I am writing a program for P910i, in there I want to capture the event from jog dail. But I can only find FourWayUP/Down/Left/Right/Confirm in the header. Does anyone know how to capture the event when I release after pressing on the jog dail? Thanks very much! Vincent |
|






Forum posts: 18
{
switch(aKeyEvent.iCode)
{
case EQuartzKeyFourWayUp:
case EQuartzKeyTwoWayUp:
{
break;
}
case EQuartzKeyFourWayDown:
case EQuartzKeyTwoWayDown:
{
break;
}
case EQuartzKeyFourWayLeft:
break;
case EQuartzKeyFourWayRight:
break;
case EQuartzKeyConfirm:
break;
}
}
Bags
Forum posts: 32
Thanks.
Forum posts: 18
if( aType == EEventKeyUp && aKeyEvent.iCode == EQuartzKeyConfirm)
{
// Jog dial confirm released
}
Bags
Forum posts: 32
Thanks,
Vincent
Forum posts: 18
Worked perfectly after using aKeyEvent.iScanCode instead of aKeyEvent.iCode and EStdQuartzKeyConfirm instead of EQuartzKeyConfirm.
{
if(aType == EEventKeyUp)
{
iEikonEnv->InfoWinL(_L("KeyUp"), _L(""));
}
else
if(aType == EEventKeyDown)
{
iEikonEnv->InfoWinL(_L("KeyDown"), _L(""));
}
}
Bags
Forum posts: 32
Thanks,
Vincent