Browse Source

change input returns

main
fdai7184 2 years ago
parent
commit
b7f964faea
  1. 10
      src/input.c

10
src/input.c

@ -44,19 +44,19 @@ char getInput(){
switch(key){
case 'w':
printf("W");
return 'u';
break;
case 'a':
printf("A");
return 'l';
break;
case 's':
printf("S");
return 'd';
break;
case 'd':
printf("D");
return 'd';
break;
case 'q':
printf("quit");
return 'q';
break;
case 'p':
printf("\033[31mgame paused, p to continue");

Loading…
Cancel
Save