about summary refs log tree commit diff
path: root/include/platform/getch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/platform/getch.h')
-rw-r--r--include/platform/getch.h13
1 files changed, 13 insertions, 0 deletions
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 <conio.h>
+#define getch _getche
+#else
+int getch(void);
+#endif /* _WIN32 */
+
+void getch_init(void);
+
+#endif /* __GETCH_H__ */