csnake/include/platform/getch.h

16 lines
309 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 03:07:48 +03:00
void getchInit(void);
void getchResetTerminalStateHandler(int sig);
void getchResetTerminalState(void);
#endif /* _WIN32 */
#endif /* __GETCH_H__ */