ToUnicodeEx - 跳过键盘缓冲区
类似于我关于如何翻译System.Windows.Forms的问题 .Keys
设置为 System.Char
我正在尝试将虚拟键代码转换为带有 ToUnicodeEx
一些按键成为死键字符,它们存储在缓冲区中以供下次调用(ToUnicodeEx
返回-1
) >,其他时候其中一个已经存储在那里。
但是我想跳过该缓冲区,并且我的程序不应影响它/受到它的影响。
有办法满足我的需要吗?
(所以:如果我的虚拟键代码转换为死键,它不应该保留在缓冲区中,并且如果缓冲区,它不应该改变我当前的函数调用)
Analogous to my question on how to translate a System.Windows.Forms.Keys
set to a System.Char
I'm trying to convert a Virtual-Key Code to a character with ToUnicodeEx
Some keys become dead-key characters which are stored in a buffer for the next call (ToUnicodeEx
returing -1
), an other times one of them is already stored there.
But I want to skip that buffer and my program should not affect/be affected from it.
Is there a way for what I need?
(So: If my virtual-key code translates to a dead-key, it should not remain in the buffer, and if there is a dead-key in the buffer, it should not change my current function call)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论