MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / onInputAction

Method onInputAction

src/ui/Menu_Main.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28bool Menu_Main::onInputAction(Engine::ActionType action)
29{
30 /**
31 * Ignore UI_Close, since when a key both bound to UI_Close and UI_ToggleMainMenu,
32 * like escape, is pressed, the menu will be immediately re-opened after closing.
33 */
34 if (action == Engine::ActionType::UI_Close)
35 return false;
36 else if (action == Engine::ActionType::UI_ToggleMainMenu)
37 return true;
38 return Menu::onInputAction(action);
39}
40
41void Menu_Main::onCustomAction(const std::string& action)
42{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected