I need to be able to wait for an input from the keyboard, and get the keycode of the key that was pressed (0x30 Etc. Not char).
I've been using _kbhit() to wait for an input, and GetAsyncKeyState(kVal) to check what the key was, but this loops too quickly and recieves hundreds of inputs in a single press.
Is there a simple function to wait for a keypress and read/check the key value?