| 26 | } |
| 27 | |
| 28 | bool 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 | |
| 41 | void Menu_Main::onCustomAction(const std::string& action) |
| 42 | { |
nothing calls this directly
no outgoing calls
no test coverage detected