Is there a function such as getch() which doesn't wait for user input? Or any type of input function that doesn't wait for user input, but just recieves it as it gets it?
Printable View
Is there a function such as getch() which doesn't wait for user input? Or any type of input function that doesn't wait for user input, but just recieves it as it gets it?
You mean asynchronously?
As in - your program keeps going, but it will collect the input data as necessary?
That's called the input i/o buffer, and you always have one :confused:
such as
while(1)
{
getch(); //not neseccarily this specific function
//other functions
}
If no key is being pressed....I want it to skip over the getch...I don't want it to wait for the user before going to the other functions...