Multiple keystrokes in Borland c++ in DOS

This is a discussion on Multiple keystrokes in Borland c++ in DOS within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I have been racking my brain trying to figure out how to handle multiple keystrokes in DOS with borland Turbo ...

  1. #1
    DomoDeathMage
    Guest

    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)

    and

    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
    Posts
    350
    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, 09: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, 08:08 PM
  5. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 12:42 PM

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