keyb.h~ 660 Bytes
Newer Older
1
#ifdef LINUX
Rafaela Meissner's avatar
Rafaela Meissner committed
2
#include "../include/keyb.h"
3
4
5
6
7
8
9
10
11
12
13
14
/*****************************************************************************/
/*  GETCH  */
/*****************************************************************************/
int getch(void);


/*****************************************************************************/
/*  KBHIT  */
/*****************************************************************************/
int kbhit();

#else
Rafaela Meissner's avatar
Rafaela Meissner committed
15
16
#include <conio.h>
#include <ctype.h>
17
18
19
20
21
22
23
24

// getch and kbhit was declared deprecated in Microsoft Visual C++. The ISO C++
// conformant name with '_' preceding the name is suggested.
#define getch _getch
#define kbhit _kbhit

#endif