Hello
KillerBunny wrote:
> Ok, i've noticed this quite a few times so far... the Winuser.h file (or some other file similar) should be responsable for holding the #defines to the virtual key-codes in windows and stuff... but it only holds about 20% of them. Missing are the alphanumeric keys (A->Z, 0->9)... i'm not willing to rewrite the entire #defines for this, although i do have a good reference to them in one of the borland help files on my computer. Are there any other header files available for MingW with the #defines for the rest of the virtual key-codes?
What i can tell you is that even the new official Microsoft Platform SDK documentation does not note VK_A to VK_Z and VK_0 to VK_9,
and their Winuser.h contains the following lines instead of them:
/*
* 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)
*/
So you can use just
switch (key) {
case VK_RETURN: ...
case 'A': ...
...
}
etc.
So, the exact answer to your question is: No.
>
> Thanks,
> -Brian
|