MCPcopy Create free account
hub / github.com/assaultcube/AC / focus

Method focus

source/src/menus.cpp:440–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438 }
439
440 virtual void focus(bool on)
441 {
442 if(on && hoveraction) execute(hoveraction);
443
444 textinput(on, TI_MENU);
445 if(action && !on && modified && parent->items.find(this) != parent->items.length() - 1)
446 {
447 modified = false;
448 execaction(input.buf);
449 }
450 }
451
452 virtual void key(int code, bool isdown)
453 {

Callers

nothing calls this directly

Calls 4

executeFunction · 0.85
textinputFunction · 0.85
findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected