Thread: Get Key Presses

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    13

    Get Key Presses

    Hi, could anyone please either explain how to get key presses from a handle or point me in the right direction with a good tutorial? Thanks.

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    umm, use DirectInput, SDL, or something similar. Win32 may have keyboard functionality, but I think it is all through DirectInput.

  3. #3
    In the Land of Diddly-Doo g4j31a5's Avatar
    Join Date
    Jul 2006
    Posts
    476
    AFAIK, Win API already has keyboard events functions. I remember them from NeHe's OpenGL Tutorial. Or you could use SDL's event handler.
    ERROR: Brain not found. Please insert a new brain!

    “Do nothing which is of no use.” - Miyamoto Musashi.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10: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