From e4fe05f79dea204e823c95c0347909a55590e257 Mon Sep 17 00:00:00 2001
From: KosmX <kosmx.mc@gmail.com>
Date: Fri, 6 Nov 2020 17:55:43 +0100
Subject: [PATCH] xd

---
 multiplatformLib.c |  4 +++-
 tests/xperiments.c | 11 ++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/multiplatformLib.c b/multiplatformLib.c
index f4b90a0..a3e9d09 100644
--- a/multiplatformLib.c
+++ b/multiplatformLib.c
@@ -17,8 +17,10 @@
 //This package is designed to do the basic operations like get char without waiting for enter or sleep
 //and be able to compile on multiple OS like linux and windows.
 
+//returns the char or EOF
+int getNextChar(){
 
-//get next character if available
+}
 
 
 struct Vec2i getWindowSize(){
diff --git a/tests/xperiments.c b/tests/xperiments.c
index 72a3203..48d24fa 100644
--- a/tests/xperiments.c
+++ b/tests/xperiments.c
@@ -48,9 +48,14 @@ void xp3(){
 }
 
 void xp4(){
-    Sleep(1000);
-    char c = _getch();
-    printf("\nchar: %c\n", c);
+    int i;
+    char c;
+    Sleep(5000);
+    while(_kbhit()){
+        c = getch();
+        printf("%c", c);
+    }
+    
 }
 
 int main(int argc, char const *argv[])
-- 
GitLab