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

Function startCursorDrag

src/OpenLoco/src/Input.cpp:51–60  ·  view source on GitHub ↗

0x00407218

Source from the content-addressed store, hash-verified

49
50 // 0x00407218
51 void startCursorDrag()
52 {
53 if (_cursorDragState == 0)
54 {
55 _cursorDragState = 1;
56 auto cursor = Ui::getCursorPos();
57 _cursorDragStart = cursor;
58 Ui::hideCursor();
59 }
60 }
61
62 // 0x00407231
63 void stopCursorDrag()

Callers 2

stateNormalRightFunction · 0.85
scrollDragBeginFunction · 0.85

Calls 2

getCursorPosFunction · 0.85
hideCursorFunction · 0.85

Tested by

no test coverage detected