pressing keys

This is a discussion on pressing keys within the C++ Programming forums, part of the General Programming Boards category; im considering making a cheezy game in c++ and was wondering how i would go about adding key press events ...

  1. #1
    Registered User heat511's Avatar
    Join Date
    Dec 2001
    Posts
    169

    pressing keys

    im considering making a cheezy game in c++ and was wondering how i would go about adding key press events to my code
    "uh uh uh, you didn't say the magic word"
    -Jurassic Park

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    129
    Mean something like getch() (look up your help files)?

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    129
    Hey!!! Two things:
    > God does not play dice.
    > -Stephan Hawking

    First, it's Stephen.
    Second, it's Einstein who said that - Hawking thinks that God is a gambler.
    kooma - t.h@iki.fi

  4. #4
    Registered User argon's Avatar
    Join Date
    Jan 2002
    Posts
    12

    Smile

    Why don´t you try to catch the signals from your keyboard?
    Depending on the platform you're intending to code, you could use the bios functions and of course, some assembly code...
    Greetings from México

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simulate Keys with a Keyboard Hook
    By guitarist809 in forum Windows Programming
    Replies: 3
    Last Post: 11-14-2008, 08:14 PM
  2. blocking or passing keys with global hook
    By pmouse in forum Windows Programming
    Replies: 4
    Last Post: 08-29-2007, 03:54 PM
  3. Pressed keys problem
    By Snip in forum Game Programming
    Replies: 2
    Last Post: 08-31-2005, 08:41 AM
  4. Replies: 0
    Last Post: 12-08-2003, 11:40 PM
  5. Arrow Keys and Such
    By Thantos in forum Game Programming
    Replies: 5
    Last Post: 10-25-2001, 06:40 PM

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