Uzytkownik "Kartik" <Ka*********@Rediffmail.com> napisal w wiadomosci
news:d8**************************@posting.google.c om...
Hello,
I was trying to develop a game in c++ ( text mode ), but I couldn't
figure out how to make rest of the elements moving in the game while
waiting for the player's input, or, how to accept the player's input
in the game. I had visited many sites having c++ tutorials but no one
gave enough explanation about this. an anyone please help me?
AFAIK there are no input facilities in C++ that do not block until the input
actually arrives. You'll have to use some system-specific library to do
that.
<OT>
If you're working in Windows you may want to take a look at
GetAsyncKeyState() function. Old Borland compilers had also non-standard
'conio.h' header. It contained functions that allowed to do non-blocking
keyboard input.
</OT>
Marcin