From b7f964faea603458abc2955d09ac38b6ea692978 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Fri, 10 Feb 2023 21:05:10 +0100 Subject: [PATCH] change input returns --- src/input.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/input.c b/src/input.c index 6e61ced..45f2c5b 100644 --- a/src/input.c +++ b/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");