I am currently writing a game demo in Borland C++, as I wish to become a games programmer in the near future. The demo is going to be a space battle simulation where you rotate and thrust in 3D space, with the aim of detroying the enemy ship, b4 the opposite occurs!!! My question is this:
"How does C++ detect the keyboard input at a precise moment, without waitng for a key to be pressed - ie. returning a value of 0 (or likewise) if no key is being pressed at that instant??"
The getch function is absolotely hopeless as it waits for a keypress (not much good for games)!!
Can anyone help?