I'm finally learning how to deal with key presses. Now, I only know what the names of the escape and shift keys are... does anyone know where I can get a list of them? If I try VK_U or VK_CTRL I get error messages...
Printable View
I'm finally learning how to deal with key presses. Now, I only know what the names of the escape and shift keys are... does anyone know where I can get a list of them? If I try VK_U or VK_CTRL I get error messages...
Heres a list of all the valid Vitual keys http://msdn.microsoft.com/library/de..._key_codes.asp
you could do a search on your headers folder and find where they are all defined at.
you get the ascii value of letters by encloseing them in single quotes like 'A' or 'a' or even '?'
well, it depends: if before calling the WndProc, you call TranslateMessage(), you have to use single-quoted letters, but if you don't, you'll have to use Virtual key codes: VK_SPACE, VK_UP
Oskilian