MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getCursorPos

Function getCursorPos

src/OpenLoco/src/Ui.cpp:409–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 }
408
409 Point getCursorPos()
410 {
411 float x = 0, y = 0;
412 SDL_GetMouseState(&x, &y);
413 return { static_cast<int32_t>(x), static_cast<int32_t>(y) };
414 }
415
416 // 0x00407FEE
417 void setCursorPosScaled(int32_t scaledX, int32_t scaledY)

Callers 3

startCursorDragFunction · 0.85
getNextDragOffsetFunction · 0.85
getCursorPosScaledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected