virtual key codes

This is a discussion on virtual key codes within the C++ Programming forums, part of the General Programming Boards category; Using virtual key codes, I want to make my program respond to the user when he presses the A letter ...

  1. #1
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369

    virtual key codes

    Using virtual key codes, I want to make my program respond to the user when he presses the A letter key. MSDN tells me to use VK_A, but that comes up as unidentified. Solutions?
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    use 'A'

    literally like that, mind you

    so, isVKeyPressed('A') or whatever the function you happen to be using is called

  3. #3
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    perfect! much thanks
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 04:45 AM
  2. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 05:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21