Originally posted by: JetBlack69
backwards is left to right? like:
---->
// Init the window stuff
hConsoleOut = GetStdHandle( STD_OUTPUT_HANDLE );
hConsoleIn = GetStdHandle( STD_INPUT_HANDLE );
GetConsoleScreenBufferInfo( hConsoleOut, &csbiInfo );
// Just cause
SetConsoleMode(hConsoleIn, ENABLE_PROCESSED_INPUT | ENABLE_ECHO_INPUT | ENABLE_MOUSE_INPUT);
void draw(int x, int y, char c, WORD color)
{
COORD Coords;
DWORD Dummy;
Coords.X = x;
Coords.Y = y;
WriteConsoleOutputCharacter( hConsoleOut, &c, 1, Coords, &Dummy );
WriteConsoleOutputAttribute( hConsoleOut, &color, 1, Coords, &Dummy );
}