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

Function isPressed

src/OpenLoco/src/Input/MouseInput.cpp:208–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 }
207
208 bool isPressed(Ui::WindowType type, Ui::WindowNumber_t number)
209 {
210 if (_pressedWindowType != type)
211 {
212 return false;
213 }
214
215 if (_pressedWindowNumber != number)
216 {
217 return false;
218 }
219
220 if (!hasFlag(Flags::widgetPressed))
221 {
222 return false;
223 }
224
225 return true;
226 }
227
228 bool isPressed(Ui::WindowType type, Ui::WindowNumber_t number, Ui::WidgetIndex_t index)
229 {

Callers 3

drawMethod · 0.85
drawTabMethod · 0.85

Calls 1

hasFlagFunction · 0.50

Tested by

no test coverage detected