From 0f686c369d5969b85b44a62aca89dfbd2841d5c2 Mon Sep 17 00:00:00 2001 From: fdai7184 Date: Thu, 9 Feb 2023 22:34:29 +0100 Subject: [PATCH] add documentation for getInput() --- src/input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input.c b/src/input.c index fdac950..839d503 100644 --- a/src/input.c +++ b/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();