Browse Source

refactoring:remove other unreachable code

main
fdai7184 2 years ago
parent
commit
ce401b6237
  1. 5
      src/input.c

5
src/input.c

@ -41,19 +41,14 @@ char getInput(){
switch(key){
case 'w':
return 'u';
break;
case 'a':
return 'l';
break;
case 's':
return 'd';
break;
case 'd':
return 'd';
break;
case 'q':
return 'q';
break;
case 'p':
printf("\033[31mgame paused, p to continue");
printf("\033[0m");

Loading…
Cancel
Save