1 |
#ifndef __KBHIT_H__
|
2 |
#define __KBHIT_H__
|
3 |
|
4 |
/*****************************************************************************
|
5 |
kbhit() and getch() for Linux/UNIX
|
6 |
Chris Giese <geezer@execpc.com> http://my.execpc.com/~geezer
|
7 |
Release date: ?
|
8 |
This code is public domain (no copyright).
|
9 |
You can do whatever you want with it.
|
10 |
*****************************************************************************/
|
11 |
#if !defined(linux)
|
12 |
#include <conio.h> /* kbhit(), getch() */
|
13 |
|
14 |
#else
|
15 |
|
16 |
/*****************************************************************************
|
17 |
*****************************************************************************/
|
18 |
void cooked(void);
|
19 |
/*****************************************************************************
|
20 |
*****************************************************************************/
|
21 |
void raw(void);
|
22 |
/*****************************************************************************
|
23 |
*****************************************************************************/
|
24 |
int kbhit(void);
|
25 |
/*****************************************************************************
|
26 |
*****************************************************************************/
|
27 |
int getch(void);
|
28 |
#endif
|
29 |
|
30 |
#endif // __KBHIT_H__
|
31 |
|