I'm trying to create a control function for my program that can simulate the kbhit() and getch() combination, it should be using standard C and windows API without using any external libraries. Can anyone give me suggestions how to do this?
I tried using GetAsyncKeyState() and ReadConsoleInput() but it doesn't work like exactly as I want them.