MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetCursorPosition

Method SetCursorPosition

Engine/source/EtCore/Util/Logger.cpp:290–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void Logger::ConsoleLogger::SetCursorPosition(ivec2 cursorPos)
291{
292#ifdef PLATFORM_Win
293 COORD pos;
294 pos.X = static_cast<int16>(cursorPos.x);
295 pos.Y = static_cast<int16>(cursorPos.y);
296
297 SetConsoleCursorPosition(m_ConsoleHandle, pos);
298#endif
299}
300
301ivec2 Logger::ConsoleLogger::GetCursorPosition()
302{

Callers 1

LogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected