PDA

Click to See Complete Forum and Search --> : getch() not waiting for user


SteveCRM
Jan 7th, 2002, 04:07 PM
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?

parksie
Jan 7th, 2002, 04:57 PM
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:

SteveCRM
Jan 7th, 2002, 05:06 PM
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...