开发者

windows keydown listeners in C

开发者 https://www.devze.com 2022-12-29 13:31 出处:网络
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 es

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

0

精彩评论

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