PDA

View Full Version : Multiple keystrokes in Borland c++ in DOS



DomoDeathMage
09-11-2002, 12:07 PM
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)

ronin
09-14-2002, 10:07 PM
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 .:D