C++ and GetAsyncKeyState() function

前端 未结 2 1804
不知归路
不知归路 2020-12-21 10:49

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 poss

2条回答
  •  既然无缘
    2020-12-21 11:47

    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.

提交回复
热议问题