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

Function stateNormal

src/OpenLoco/src/Input/MouseInput.cpp:1116–1133  ·  view source on GitHub ↗

0x004C8048

Source from the content-addressed store, hash-verified

1114
1115 // 0x004C8048
1116 static void stateNormal(MouseButton state, int32_t x, int32_t y, Ui::Window* window, Ui::Widget* widget, Ui::WidgetIndex_t widgetIndex)
1117 {
1118 switch (state)
1119 {
1120 case MouseButton::leftPressed:
1121 stateNormalLeft(x, y, window, widgetIndex);
1122 break;
1123 case MouseButton::rightPressed:
1124 stateNormalRight(x, y, window, widgetIndex);
1125 break;
1126 case MouseButton::released:
1127 stateNormalHover(x, y, window, widget, widgetIndex);
1128 break;
1129
1130 default:
1131 break;
1132 }
1133 }
1134
1135 // 0x004C8098
1136 static void stateNormalHover(int32_t x, int32_t y, Ui::Window* window, Ui::Widget* widget, Ui::WidgetIndex_t widgetIndex)

Callers 1

handleMouseFunction · 0.85

Calls 3

stateNormalLeftFunction · 0.85
stateNormalRightFunction · 0.85
stateNormalHoverFunction · 0.85

Tested by

no test coverage detected