get key

This is a discussion on get key within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm programming with Visual C++, makeing a win32 console app, I am pretty new at this and I gotta ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    3

    get key

    Hi, I'm programming with Visual C++, makeing a win32 console app, I am pretty new at this and I gotta make an animated final project. I would like my program to recognise what button has been pressed. For instance, instead of typing in 'left' to move left, I would like to push the left key to move left, etc. How would I go about doing this?

  2. #2
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 12:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM

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