Yes, I have read the sticky MANY times, however it does not help me with my problem.
The issue is that I have a program where getch()
is used in conjunction with kbhit()
in order to only recieve input when the user hits a key. The problem is that if the program does something else, while it is not checking for user input, the user can jam keys enough to build up a large amount of key hits, all of which get inputted at once when the program begins checking for input again.
So what I need to do is clear the input stream, however, all the methods I have seen so far require the user to hit Enter in order to get past the input clearing, I need a way to clear input, without requiring an Enter hit.
Thanks in advance.