MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / InputWindowPositionBegin

Function InputWindowPositionBegin

src/openrct2-ui/input/MouseInput.cpp:474–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472#pragma region Window positioning / resizing
473
474 void InputWindowPositionBegin(WindowBase& w, WidgetIndex widgetIndex, const ScreenCoordsXY& screenCoords)
475 {
476 _inputState = InputState::positioningWindow;
477 gInputDragLast = screenCoords - w.windowPos;
478 _dragWidget.windowClassification = w.classification;
479 _dragWidget.windowNumber = w.number;
480 _dragWidget.widgetIndex = widgetIndex;
481 }
482
483 static void InputWindowPositionContinue(
484 WindowBase& w, const ScreenCoordsXY& lastScreenCoords, const ScreenCoordsXY& newScreenCoords)

Callers 2

initMethod · 0.85
InputWidgetLeftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected