I am having a very hard time finding resources that talk about the windows message system. Mainly the keydown constant variables. I need to know what const varibles I need to listen for all keypress especi开发者_运维技巧ally the arrow keys for C
There is a winuser.h header file found in your SDK's installation which lists all the VK_ (Virtual Keys) which are key codes that you require, specifically VK_UP, VK_RIGHT, VK_LEFT and VK_DOWN for the up/right/left/down cursor keys respectively.
http://msdn.microsoft.com/en-us/library/dd375731(v=VS.85).aspx lists all of the virtual key codes. http://msdn.microsoft.com/en-us/library/ms646280(VS.85).aspx explains how they are carried in WM_KEYDOWN
精彩评论