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

Function rightMouseButtonReleased

src/OpenLoco/src/Input/MouseInput.cpp:1739–1759  ·  view source on GitHub ↗

0x004C70F1

Source from the content-addressed store, hash-verified

1737
1738 // 0x004C70F1
1739 static MouseButton rightMouseButtonReleased(int32_t& x, int32_t& y)
1740 {
1741 stopCursorDrag();
1742 resetFlag(Flags::rightMousePressed);
1743 Ui::setCursor(_lastCursorId);
1744
1745 if (Tutorial::state() == Tutorial::State::playing)
1746 {
1747 x = Tutorial::nextInput();
1748 y = Tutorial::nextInput();
1749 }
1750 else
1751 {
1752 x = _mousePosX;
1753 y = _mousePosY;
1754 }
1755
1756 // 0x004C7136, 0x004C7165
1757 _cursor2.x = 0x80000000;
1758 return MouseButton::rightReleased;
1759 }
1760
1761 // 0x004C6EE6
1762 MouseButton nextMouseInput(int32_t& x, int32_t& y)

Callers 1

nextMouseInputFunction · 0.85

Calls 5

stopCursorDragFunction · 0.85
setCursorFunction · 0.85
nextInputFunction · 0.85
resetFlagFunction · 0.50
stateFunction · 0.50

Tested by

no test coverage detected