C ++和GetAsyncKeyState()函数 [英] C++ and GetAsyncKeyState() function
本文介绍了C ++和GetAsyncKeyState()函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因为它只给出大写字母,任何想法如何获得小写?
如果用户同时pessed SHIFT + K或CAPSLOCK打开等,我想得到较低的案件..
是可能以这种方式或另一个?
As it gives only Upper case letters, any idea how to get lower case?? If the user simultaneously pessed SHIFT+K or CAPSLOCK is on,etc, I want to get lower cases.. is it possible in this way or another??
感谢,
推荐答案
正如你正确地指出,键而不是大写或小写。因此,可能另一次调用:: GetASyncKeyState(VK_SHIFT)可以帮助您确定shift-key是否关闭,然后您可以相应地修改后续调用的结果。
As you rightly point out, it represents a key and not upper or lower-case. Therefore, perhaps another call to ::GetASyncKeyState(VK_SHIFT) can help you to determine if the shift-key is down and then you will be able to modify the result of your subsequent call appropriately.
这篇关于C ++和GetAsyncKeyState()函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文