function to detect keyboard hit

Shen, Xinzhuo (US SSA) xinzhuo.shen@baesystems.com
Mon Mar 13 23:11:00 GMT 2006


Dear Sir/Madam:

Is there a function in gcc to detect a keyboard hit?  Windows provides a
function _kbhit().  It operates in non-blocking mode, returns 0 until
the user hits a key on the keyboard.  Does gcc have the similar function
to call?

Thanks,

Sean




More information about the Gcc-help mailing list