kbhit

Hi guys!

I'm writing sort of a pacman game. up untill now it was based on 2 "Computer players" but now i'm adding another human controled player.

the problem is that i'm not sure how can i get use the arrow keys to make him move - because i'm using while (!_kbhit()) || (_getch() != ESC) i probably won't be able to get the arrow input becuase kbhit will "eat" it...

any ideas what can i do so i'll be able to move the player but also press ESC to quit the game?

Thank you very much!
Topic archived. No new replies allowed.