我正在使用 Carbide.C++ 2.3 和 S60 3rd FP2 SDK
在 Container 的 OfferKeyEventL 函数中,我收到了所有的键事件,但是如何识别键映射/键组?
我的意思是问如何识别它是字母键事件还是数字键事件或特殊键事件?
请指导我...
您可以为此使用 TKeyEvent 的 iCode 和 iScanCode 成员。
/** The character code generated for an EEventKey, or 0 for a down or up event.
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;