Location:
e32keys.h
TStdScanCode
Scan codes for the physical keys found on keyboards.
When processing a TKeyEvent, the TStdScanCode in TKeyEvent::iScanCode should usually be ignored in favour of the TKeyCode in TKeyEvent::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. First, the low-level keyboard mapping might re-arrange the mapping that you are trying to impose. Second, you will subvert the CTRL+number method of entering Unicode literals.
|