【问题标题】:How can I get the KeyCode associated to a given KeySym?如何获取与给定 KeySym 关联的 KeyCode?
【发布时间】:2012-03-22 22:15:14
【问题描述】:

我已经看到 XGetKeyboardMapping() 可以让我这样做,但是文档不透明,我找不到任何示例。有什么想法吗?

【问题讨论】:

    标签: c keyboard xlib


    【解决方案1】:

    您正在寻找:

    KeyCode XKeysymToKeycode(显示,键符) 显示*显示; KeySym 键符;

    keycode1 = XKeysymToKeycode(display, XK_dead_acute);

    Also see this answer

    【讨论】:

    • jesus... 我已经花了 10 多个小时与那个映射的东西作斗争。谢谢你:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-07
    相关资源
    最近更新 更多