From aea40f3877e36e95f2a70e3eeb0569fd156e3841 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Fri, 5 Jul 2024 07:16:05 +0300 Subject: Add almost all Only continue operation and "blocks" of code are left. Now I'm gonna sleep And yes, I understand that code need to be refactored, and if I will not get bored with writing this thing I will rewrite it in a better way, cuz now code is awful --- include/platform/getch.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/platform/getch.h (limited to 'include/platform/getch.h') diff --git a/include/platform/getch.h b/include/platform/getch.h new file mode 100644 index 0000000..490b536 --- /dev/null +++ b/include/platform/getch.h @@ -0,0 +1,13 @@ +#ifndef __GETCH_H__ +#define __GETCH_H__ + +#ifdef _WIN32 +#include +#define getch _getche +#else +int getch(void); +#endif /* _WIN32 */ + +void getch_init(void); + +#endif /* __GETCH_H__ */ -- cgit 1.4.1