开发者

ToUnicodeEx - Skip Keyboard Buffer

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜