Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to configure PC keyboard mappings

To map your PC keys to Symbian OS key codes for the emulator, you need to configure the epoc.ini file, using the configuration file KeyMap and the relevant keywords listed in the e32keys header file.

The process is:

  1. At the end of the epoc.ini file, enter the keyword KeyMap, followed by an optional modifier name, the PC key name and the Symbian OS key code.

  2. Enter the keyword KeyMap, followed by the PC keyboard name and the Symbian OS key code. The key codes used are defined in the system header file e32keys.h.

    The Symbian OS key codes used can be found in the system header file e32keys.h, under the enum TStdScanCode.

    Key names and modifier names can be found in e32\ekern\emul\win32\kp_gui.cpp.

    For example, to map function key 1 to display the menu, you need to use the relevant key code for F1 with the Symbian OS key code for the menu option (EstdKeyMenu, listed within TStdScanCode), as follows:

    KeyMap F1 EStdKeyMenu

    To define the left Alt key and the letter Y as a confirmation button (Yes button), you need to use the relevant modifier name and the PC key name with the Symbian OS key code for Yes (EstdKey) as follows:

    KeyMap LeftAlt Y EstdKeyYes
  3. Once the mapping has been done, save the epoc.ini file. The changes will take effect when the emulator is next started