Thread: Multiple keystrokes in Borland c++ in DOS

  1. #1

    Multiple keystrokes in Borland c++ in DOS

    I have been racking my brain trying to figure out how to handle multiple keystrokes in DOS with borland Turbo C++ v 3.0. If anyone has any information or links to information on the following subjects I will be very greatful...

    Eliminating the keyboard delay(When you hold down the arrow key, the sprite moves in that the direction once, then stops for a second, then continues to go until you release the, I don't want him to stop for a second)


    Handling multiple keystrokes(I want to be able to read the up key and the right key at the same time to make a sprite go diagonal)

  2. #2
    Casual Visitor
    Join Date
    Oct 2001
    You might try setting the type rate for the first problem.

    I think you're barking up the wrong tree for the second one. Try using a joystick function instead. The keyboard reads the keys from the time one is pressed until it's released if I'm not mistaken, so it might be hard to sync multible scan codes, butI'm hardly an expert there .
    I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker errors - Multiple Source files
    By nkhambal in forum C Programming
    Replies: 3
    Last Post: 04-24-2005, 02:41 AM
  2. Help getting multiple keypresses in a DOS compiler
    By Nongan in forum Game Programming
    Replies: 2
    Last Post: 04-01-2005, 10:07 PM
  3. Multiple threads, Dos APP, manage windows
    By cbrc00f in forum C Programming
    Replies: 1
    Last Post: 04-15-2003, 06:21 AM
  4. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  5. DOS program versus DOS console program
    By scromer in forum A Brief History of
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM