Next Previous Contents

116. SLang_input_pending

Synopsis

Check to see if input is pending

Usage

int SLang_input_pending (int tsecs)

Description

SLang_input_pending may be used to see if an input character is available to be read without causing SLang_getkey to block. It will wait up to tsecs tenths of a second if no characters are immediately available for reading. If tsecs is less than zero, then SLang_input_pending will wait -tsecs milliseconds for input, otherwise tsecs represents 1/10 of a second intervals.

Notes

Not all systems support millisecond resolution.

See Also

SLang_getkey


Next Previous Contents