Does anyone know where i can find a chart of all of the VK codes? also, what are the VK codes for 1 to 9? VK_1 ect doesnt seem to work.
==============================
whats a signature?
htm[s]l[/s]
whats a signature?
htm[s]l[/s]
Check MSDN, should be something there if you search enough. As for the VK_1: there aren''t any virtual keycodes for letters or numbers, so if you want to see if one of those is pressed you need to check the ASCII value. For example, ''A'' would be 65 on the chart, so you''d check to see if 65 was pressed. Dumb, huh?
BTW, DirectInput doesn''t have this problem. So if you want to check for the letter ''A'' in DInput, youd just check to see if DIK_A was pressed.
--TheGoop
BTW, DirectInput doesn''t have this problem. So if you want to check for the letter ''A'' in DInput, youd just check to see if DIK_A was pressed.
--TheGoop
May 29, 2000 11:35 PM
The answer you are searching for exists in winuser.h.
/*
* VK_0 - VK_9 are the same as ASCII ''0'' - ''9'' (0x30 - 0x39)
* 0x40 : unassigned
* VK_A - VK_Z are the same as ASCII ''A'' - ''Z'' (0x41 - 0x5A)
*/
(quoted from winuser.h)
Hope this helps
Kwanji
/*
* VK_0 - VK_9 are the same as ASCII ''0'' - ''9'' (0x30 - 0x39)
* 0x40 : unassigned
* VK_A - VK_Z are the same as ASCII ''A'' - ''Z'' (0x41 - 0x5A)
*/
(quoted from winuser.h)
Hope this helps
Kwanji
for numbers 1 to 9, use ''1'', ''2'' etc. For the letters, you have to use ''A'', ''B'', ''C'' etc.
- Daniel
my homepage
- Daniel
my homepage
- DanielMy homepage
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement