WIN32 C, how to check if a virtual key is a character?
VK_LEFT is not a chara开发者_运维百科cter but VK_A is. How can I differentiate them? Thanks.
Not sure there is a really clean way to do this, but try looking at ToAscii or ToAsciiEx: if you get a 0 then it is a control character like VK_LEFT.
精彩评论