如何在Symbian S60中Container类的OfferKeyEventL函数中获取按键事件组

发布于 2024-10-02 12:32:46 字数 169 浏览 0 评论 0原文

我正在使用 Carbide.C++ 2.3 和 S60 3rd FP2 SDK

在 Container 的 OfferKeyEventL 函数中我正在接收所有按键事件,但如何识别按键映射/按键组?

我的意思是问如何识别是字母键事件还是数字键事件还是特殊键事件?

请指导我...

I am using Carbide.C++ 2.3 and S60 3rd FP2 SDK

In Container's OfferKeyEventL function I am receiving all the key events but how can I identify key map/key group?

I mean to ask how to identify is it Alpha key event or Numeric Key event or special key event??

Please guide me...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲欢浪云 2024-10-09 12:32:47

您可以使用 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;

You can use iCode and iScanCode members of TKeyEvent for that.

/** 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;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文