|
@ -16,6 +16,7 @@ void Pausieren(); |
|
|
} |
|
|
} |
|
|
}*/ |
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** getInput gets the userinput and reacts to input of w,a,s,d, arrow keys, p or q |
|
|
/** getInput gets the userinput and reacts to input of w,a,s,d, arrow keys, p or q |
|
|
* utilises getch() and kbhit, no parameters, no returns |
|
|
* utilises getch() and kbhit, no parameters, no returns |
|
|
*/ |
|
|
*/ |
|
@ -37,7 +38,6 @@ char getInput(){ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
|
|
|
|
|
|
switch(key){ |
|
|
switch(key){ |
|
|
case 'w': |
|
|
case 'w': |
|
|
return 'u'; |
|
|
return 'u'; |
|
@ -58,7 +58,6 @@ char getInput(){ |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -86,8 +85,6 @@ char getTInput(char key){ |
|
|
} |
|
|
} |
|
|
return 'n'; |
|
|
return 'n'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -129,8 +126,7 @@ int kbhit(void){ |
|
|
return 0; |
|
|
return 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
char getch(void) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
char getch(void){ |
|
|
char c; |
|
|
char c; |
|
|
system("stty raw"); |
|
|
system("stty raw"); |
|
|
c= getchar(); |
|
|
c= getchar(); |
|
|