Useless cross_getch hack removed
authorMarkus Bröker <mbroeker@largo.dyndns.tv>
Thu, 16 Apr 2009 12:50:39 +0200
changeset 69 b5912e5f899f
parent 68 d549894aa6a9
child 70 ded389a5dc2a
Useless cross_getch hack removed cross_getch provides a version of getch for every os. The Windows Part does not work under wine, but it works on the target platform. committer: Markus Bröker <mbroeker@largo.homelinux.org>
db_bridge/console.cpp
libConsole/cross_getch.c
--- a/db_bridge/console.cpp
+++ b/db_bridge/console.cpp
@@ -13,9 +13,7 @@
 {
     int ch = -1;
 
-    while (!kbhit ()) {
-        ch =::getch ();
-    }
+    ch =::getch ();
 
     return ch;
 }
--- a/libConsole/cross_getch.c
+++ b/libConsole/cross_getch.c
@@ -9,9 +9,7 @@
 {
     int ch = -1;
 
-    while (!kbhit ()) {
-        ch = getch ();
-    }
+    ch = getch ();
 
     return ch;
 }