Diff for libplaton/platon/misc/kbhit.h between version 1.5 and 1.6
| version 1.5, 2002/02/04 18:38:11 |
version 1.6, 2002/09/19 23:18:00 |
|
|
| #ifndef _PLATON_UTILS_KBHIT_H |
/** |
| #define _PLATON_UTILS_KBHIT_H |
* @file misc/kbhit.h |
| |
* @brief UNIX systems keyboard hit implementation |
| #ifdef __MSDOS__ |
* @author Pavel Hereout |
| |
* @version \$Id$ |
| |
* @date unknown |
| |
*/ |
| |
|
| #include <conio.h> |
#ifndef _PLATON_MISC_KBHIT_H |
| |
#define _PLATON_MISC_KBHIT_H |
| |
|
| |
#ifdef __MSDOS__ |
| |
# include <conio.h> |
| #else |
#else |
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| extern "C" { |
extern "C" { |
| #endif |
#endif |
| |
|
| /* |
/** |
| * kbhit() |
* UNIX systems kbhit() implementation |
| * |
* |
| * UNIX systems kbhit() implementation. |
* @return -1 on error, keycode of pressed key |
| * Returns -1 on error, keycode of pressed key or 0 when no key is pressed. |
* or 0 when no key is pressed |
| */ |
* |
| |
* Note, that this function is very slow. |
| int kbhit(void); |
*/ |
| |
int kbhit(void); |
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| } |
} |
|
|
| |
|
| #endif |
#endif |
| |
|
| #endif /* #ifndef _PLATON_UTILS_KBHIT_H */ |
#endif /* #ifndef _PLATON_MISC_KBHIT_H */ |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|