I need to write a routine that will do the following:
Check if keyboard buffer is empty
LOOP UNTIL Keyboard buffer is empty
So basically I need know how I can check the status of the keyboard buffer to determine if its empty or not.
What functions would I need to achieve this? I'm currently using Visual C++ 6.