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

Function setFocus

src/OpenLoco/src/Input/MouseInput.cpp:268–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266 }
267
268 void setFocus(Ui::WindowType type, Ui::WindowNumber_t number, Ui::WidgetIndex_t index)
269 {
270 _focusedWindowType = type;
271 _focusedWindowNumber = number;
272 _focusedWidgetIndex = index;
273
274 setFlag(Flags::widgetFocused);
275 }
276
277 void resetFocus()
278 {

Callers 3

openFunction · 0.85
openTextInputFunction · 0.85
stateNormalLeftFunction · 0.85

Calls 1

setFlagFunction · 0.50

Tested by

no test coverage detected