csnake/include/platform/getch.h

14 lines
226 B
C
Raw Normal View History

#ifndef __GETCH_H__
#define __GETCH_H__
#ifdef _WIN32
#include <conio.h>
#define getch _getch
2023-12-17 00:41:42 +03:00
inline int getchInit(void) { return 0; }
#else
int getch(void);
2023-12-17 00:41:42 +03:00
int getchInit(void);
#endif /* _WIN32 */
#endif /* __GETCH_H__ */