Siamak 2 years ago
parent
commit
0bdd18864b
  1. 3
      src/input.c

3
src/input.c

@ -15,6 +15,9 @@ char getch(void);
}
}*/
/** 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
*/
void getInput(){
if(kbhit()){
char key= getch();

Loading…
Cancel
Save