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

Function WindowViewportWheelInput

src/openrct2-ui/interface/Window.cpp:148–157  ·  view source on GitHub ↗

* * rct2: 0x006E79FB */

Source from the content-addressed store, hash-verified

146 * rct2: 0x006E79FB
147 */
148 static void WindowViewportWheelInput(WindowBase& w, int32_t wheel)
149 {
150 if (gLegacyScene == LegacyScene::trackDesignsManager || gLegacyScene == LegacyScene::titleSequence)
151 return;
152
153 if (wheel < 0)
154 Windows::WindowZoomIn(w, true);
155 else if (wheel > 0)
156 Windows::WindowZoomOut(w, true);
157 }
158
159 static bool isSpinnerGroup(WindowBase& w, WidgetIndex index, WidgetType buttonType)
160 {

Callers 1

WindowAllWheelInputFunction · 0.85

Calls 2

WindowZoomInFunction · 0.85
WindowZoomOutFunction · 0.85

Tested by

no test coverage detected