SymbianER

symbian application developers' zone

A small tool to get the members of the TKeyEvent class Bookmark this page on deli.cio.us

When processing a TKeyEvent, the TStdScanCode in iScanCode should usually be ignored in favour of the TKeyCode in iCode. Using iScanCode would bypass the keyboard mapping and any FEP that happens to be installed. The exceptions to this general rule are games where the positions of the keys are more important than their translations, and FEPs that are implementing keyboard maps themselves. In these cases, if the iCode is used rather than iScanCode to determine the key pressed, there will be two unfortunate consequences. Firstly, the low-level keyboard mapping might re-arrange the mapping that you are trying to impose. Secondly, you will subvert the CTRL+number method of entering Unicode literals.

above-mentioned contents refers to the TKeyEvent in S60 SDK.

in w32std.h file

Code:
struct TKeyEvent
 {
 //Key codes for special keys are defined in TKeyCode. 
 TUint iCode;
 //The scan code of the key that caused the event.
//Standard scan codes are defined in TStdScanCode. 
 TInt iScanCode;
 //State of modifier keys and pointing device. Modifier keys are defined in TEventModifier.
 TUint iModifiers;
 /** Count of auto repeats generated.0 means an event without repeats. 1 or more means "this many auto repeat events".
 It is normal to ignore this value and treat it as a single event. */
 TInt iRepeats;
 };
This tool can display the key codes in screen. for example when you press a "Ok", the screen like this:
   
click this link to download this tool: KeyCodeExample.sis(S60 2rd FP3)
Get more: http://www.symbianer.com

If you like this post then please consider subscribing to my full feed RSS. You can also subscribe by Email and have new posts sent directly to your inbox.

Post A Comment:

Recent Entries

Site Search

Recent Entries

Subscribe

    Enter your email address:

    Delivered by FeedBurner

Feeds

    Subscribe in Rojo
    Add to Google

    Subscribe in Bloglines
    Subscribe in NewsGator Online
    Add to Technorati Favorites
    Add symbianer-Symbian S60 Uiq Mobile Examples Codes to Newsburst from CNET News.com

    Add to My AOL
    Subscribe in FeedLounge
    Add to netvibes
    Add to The Free Dictionary
    Add to Bitty Browser
    Add to Plusmo
    Subscribe in NewsAlloy
    Add symbianer-Symbian S60 Uiq Mobile Examples Codes to ODEO
    Subscribe in podnova
    Add to Pageflakes

    Technology Blogs - Blog Top Sites

Communities


English Version Mobile Symbianer PowerBy SymbianER
Copyright 2006-2008 www.symbianer.com All Rights Reserved.