| 23 | } |
| 24 | |
| 25 | bool GuiMenu::input(InputConfig* config, Input input) |
| 26 | { |
| 27 | mList->input(config, input); |
| 28 | |
| 29 | if(config->isMappedTo("menu", input) && input.value != 0) |
| 30 | { |
| 31 | delete this; |
| 32 | return true; |
| 33 | } |
| 34 | |
| 35 | if(config->isMappedTo("a", input) && input.value != 0) |
| 36 | { |
| 37 | executeCommand(mList->getSelectedObject()); |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | void GuiMenu::executeCommand(std::string command) |
| 45 | { |
nothing calls this directly
no test coverage detected