I'm implementing the function that lets user set the control keys of the game. After the user clicks, it will wait until one key is pressed (without enter). I use kbhit() to wait for key press like this.
But even a key is pressed, it doesn't exit the loop. What's wrong with this?Code:while(!kbhit()){}
Appreciate all your help.



LinkBack URL
About LinkBacks


