
332.4. Keyboard Input with Windows API
/*
* 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)
*/
/*
* VK_L* & VK_R*: left and right Alt, Ctrl and Shift virtual keys.
* Used only as parameters to GetAsyncKeyState() and GetKeyState().
* No other API or message will distinguish left and right keys in this way.
*/
#define VK_LSHIFT 0xA0
#define VK_RSHIFT 0xA1
#define VK_LCONTROL 0xA2
#define VK_RCONTROL 0xA3
#define VK_LMENU 0xA4
#define VK_RMENU 0xA5
#define VK_NUMPAD0 0x60
...
#define VK_NUMPAD9 0x69
#define VK_F1 0x70
…
#define VK_F12 0x7B
Listing 2.16.