alrighty im making this game kinda like snake. My problem is that i want to see if there is something in the keyboard buffer or not and not wait for the user to really push a key
goto would remember in what direction the head is and when it gets 2,2 go on in that direction. Problem is , if i use scanf() the computer waits till input if there isnt anything in the keyboard buffer. getch() does the same . I just want to check if a there is something in the buffer , if not go on without waiting. I thought about using threads which seems kinda hard in mingw (im doing this in C only no C++). Any suggestion or is threads my only option???
int running = 1;
thank you for you attention if you made it this far