void UpdateCursor()
Reads the activator's mouse input and turns it into cursor motion. Takes the following cvars into account so that the cursor is not affected by game mouse settings:
mouse_sensitivity
m_yaw
m_pitch
invertmouse
This function needs to be called before everything else in a loop.
while (true) { UpdateCursor(); DrawCursor(CursorX(), CursorY()); Delay(1); }