本文介绍了如何将X11 KeySym映射到Unicode字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是此文件的精确副本问题;但是,已接受的答案中链接的代码已有将近11年的历史了,代码中的此注释导致我提出了重复的问题:
This is an exact duplicate of this question; however the code linked in the accepted answer is nearly 11 years old, and this comment in the code leads to my duplicate question:
我们到了吗?我知道XwcLookupString
,但是类似...
Are we there yet? I'm aware of XwcLookupString
, but something like...
wchar_t unicode = XKeySymToWideChar( keysym );
...将更加简单和逻辑,并且每次添加或更改KeySyms时都不需要更新.
... would be much simpler and logical, and not require updating whenever KeySyms are added or changed.
X11/Xlib中是否有一个简单的函数可以将KeySym映射到它的Unicode等效项?
Is there a simple function in X11/Xlib that will map a KeySym to its Unicode equivalent?
推荐答案
这篇关于如何将X11 KeySym映射到Unicode字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!