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

Function cursor

src/OpenLoco/src/Ui/Windows/DragVehiclePart.cpp:68–74  ·  view source on GitHub ↗

0x004B62FE

Source from the content-addressed store, hash-verified

66
67 // 0x004B62FE
68 static Ui::CursorId cursor(Window& self, [[maybe_unused]] const WidgetIndex_t widgetIdx, [[maybe_unused]] const WidgetId id, [[maybe_unused]] const int16_t x, [[maybe_unused]] const int16_t y, [[maybe_unused]] const Ui::CursorId fallback)
69 {
70 self.height = 0; // Set to zero so that skipped in window find
71 Vehicle::Details::scrollDrag(Input::getScrollLastLocation());
72 self.height = 60;
73 return CursorId::dragHand;
74 }
75
76 // 0x004B6271
77 static void onMove(Window& self, [[maybe_unused]] const int16_t x, [[maybe_unused]] const int16_t y)

Callers

nothing calls this directly

Calls 2

scrollDragFunction · 0.85
getScrollLastLocationFunction · 0.85

Tested by

no test coverage detected