For example, press numeric 2 key,I want to get the value 'a' and multiple press numeric 2 key I want to get the character value 'b' or 'c'. How can I do that?Thanks!!!
Re: How to get the character value from the key envent?
I think the OP wants to replicate the multiple characters on a single button functionality rather than just get a single character. Maybe you could setup a small timer which needs to expire before the cursor can be moved ahead ... so if the timer is for 30ms, and the user presses the key within that time, you go from 'a' to 'b', else you move the cursor one step forward and print an 'a' again.
Re: How to get the character value from the key envent?
I have read in symbian os internals that wserv does this internaly. But there might be some call which invokes that facility (may be something with repeats)
Could someone plz help me out.
Forum posts: 149
{
if (aType == EEventKey)
{
switch(aKeyEvent.iCode)
{
case 'a': case 'A':
case EKeyHome:
// etc...
}
}
}
Forum posts: 106
Regards,
Varun
Forum posts: 2
I have read in symbian os internals that wserv does this internaly. But there might be some call which invokes that facility (may be something with repeats)
Could someone plz help me out.
Forum posts: 286
Check out Check out the RWsSession::SetModifierState & EModifierNumLock. But this needs WriteDeviceData capability.
AFAIK there is no direct api to get this information.
Cheers,
Sri