I'm writing a simple Tetris game to try out a small console manipulation class I made.
However, it seems to me that I cannot have a proper message loop in a console application. So what would be a decent approach?
I'm thinking of a busy loop with a small Sleep (not to burn CPU), measuring time with clock() (or Windows equivalent) and handling time-based updates when a certain time has elapsed, and reading keyboard input with GetAsyncKeyState (or may-be ReadConsoleInput). I'm not sure yet, whether I'll have problems with blocks moving too fast when a key is pressed...
Does this approach sound OK?