I can read which key is pressed using getch(). For example i can read whether left arrow is pressed or not. But i want know whether both left arrow and up arrow is pressed at the same time or not-- I want to move an object diagonally across the screen if both LEFT+ UP arrow is pressed and that's why i want to know this thing.
Also how do i know whether a key is pressed or released.
Also while making games i noticed that I dont get smooth movement of the space-craft that i control. Like if I pushed right arrow(and kept it pressed) then it moves one step to right first time but then stops for a while and only then it keeps goin in the right direction as long as I keep the right arrow pressed. The problem here is the lag between the first time it moves and when it keeps goin in a direction. I want to eliminate the lag and thus give a smoother control.
I know all these problems can be solved using DirectInput, but i would like to know if i can do so in CONSOLE,