Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
TKeyEvent Struct Reference

Key event details. More...

#include <w32std.h>

Public Attributes

TUint iCode
 The character code generated for an EEventKey, or 0 for a down or up event.
 
TInt iScanCode
 The scan code of the key that caused the event.
 
TUint iModifiers
 State of modifier keys and pointing device.
 
TInt iRepeats
 Count of auto repeats generated.
 

Detailed Description

Key event details.

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.

API status
Published to all clients. Released API.

Definition at line 847 of file w32std.h.

Member Data Documentation

◆ iCode

TUint TKeyEvent::iCode

The character code generated for an EEventKey, or 0 for a down or up event.

Key codes for special keys are defined in TKeyCode.

Definition at line 868 of file w32std.h.

◆ iModifiers

TUint TKeyEvent::iModifiers

State of modifier keys and pointing device.

Modifier keys are defined in TEventModifier.

Definition at line 874 of file w32std.h.

◆ iRepeats

TInt TKeyEvent::iRepeats

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.

Definition at line 879 of file w32std.h.

◆ iScanCode

TInt TKeyEvent::iScanCode

The scan code of the key that caused the event.

Standard scan codes are defined in TStdScanCode.

Definition at line 872 of file w32std.h.


The documentation for this struct was generated from the following file: