Browse Source

refactoring:cleaning up input

main
fdai7184 2 years ago
parent
commit
d5797d6768
  1. 9
      src/input.c

9
src/input.c

@ -8,15 +8,6 @@ int kbhit(void);
char getch(void); char getch(void);
void Pausieren(); void Pausieren();
/*int main(int argc, char ** argv){
printf("wasd or arrows to control snake, q to quit, p to pause game.");
while(1){
getInput();
}
}*/
/** 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
*/ */

Loading…
Cancel
Save