Thread: List of Keys

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    35

    Cool List of Keys

    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...

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    61
    Heres a list of all the valid Vitual keys http://msdn.microsoft.com/library/de..._key_codes.asp

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    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 '?'

  4. #4
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. Anyone good with linked list.....I am not....
    By chadsxe in forum C++ Programming
    Replies: 11
    Last Post: 11-10-2005, 02:48 PM
  3. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  4. Linked list with two class types within template.
    By SilasP in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2002, 06:13 AM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM