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

Function initMouse

src/OpenLoco/src/Input/MouseInput.cpp:119–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 constexpr int32_t kDropdownItemUndefined = -1;
118
119 void initMouse()
120 {
121 _pressedWindowType = Ui::WindowType::undefined;
122
123 Ui::ToolTip::setNotShownTicks(0xFFFFU);
124 _hoverWindowType = Ui::WindowType::undefined;
125 _focusedWindowType = Ui::WindowType::undefined;
126
127 _mousePosX = 0;
128 _mousePosY = 0;
129
130 World::resetMapSelectionFlags();
131 }
132
133 void moveMouse(int32_t x, int32_t y, int32_t relX, int32_t relY)
134 {

Callers 1

resetSubsystemsFunction · 0.85

Calls 2

setNotShownTicksFunction · 0.85
resetMapSelectionFlagsFunction · 0.85

Tested by

no test coverage detected