/** * UNIX systems keyboard hit implementation * * @file platon/misc/kbhit.h * @author Pavel Hereout * @version \$Platon: libplaton/platon/misc/kbhit.h,v 1.8 2002/10/05 09:50:57 nepto Exp $ * @date 1995-2003 */ #ifndef _PLATON_MISC_KBHIT_H #define _PLATON_MISC_KBHIT_H #ifdef __MSDOS__ # include #else #ifdef __cplusplus extern "C" { #endif /** * UNIX systems kbhit() implementation * * @return -1 on error, keycode of pressed key * or 0 when no key is pressed * * Note, that this function is very slow. */ int kbhit(void); #ifdef __cplusplus } #endif #endif #endif /* #ifndef _PLATON_MISC_KBHIT_H */