MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetUICursorPosition

Method SetUICursorPosition

ogsr_engine/xrGame/UICursor.cpp:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void CUICursor::SetUICursorPosition(const Fvector2& pos)
101{
102 vPos = pos;
103
104 const int x = iFloor(vPos.x / (UI_BASE_WIDTH / (float)Device.dwWidth));
105 const int y = iFloor(vPos.y / (UI_BASE_HEIGHT / (float)Device.dwHeight));
106
107 SetCursorPos(x, y);
108}

Callers 3

enable_inputFunction · 0.80
ShowMethod · 0.80
StartMethod · 0.80

Calls 1

SetCursorPosFunction · 0.85

Tested by

no test coverage detected