开发者

ToUnicodeEx - Skip Keyboard Buffer

开发者 https://www.devze.com 2023-03-10 00:19 出处:网络
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

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开发者_Python百科 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号