diff --git a/src/input.c b/src/input.c index f3ce425..ca86e2d 100644 --- a/src/input.c +++ b/src/input.c @@ -91,6 +91,10 @@ void Pausieren(){ //khbit und getch aus dem Internet + +/**checks if there was a console input + *returns int, no parameter + */ int kbhit(void){ struct termios oldt, newt; int ch; @@ -117,6 +121,10 @@ int kbhit(void){ return 0; } + +/**returns the char from console + *returns char, no parameter + */ char getch(void){ char c; system("stty raw");