MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / input

Method input

src/components/GuiMenu.cpp:25–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25bool 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
44void GuiMenu::executeCommand(std::string command)
45{

Callers

nothing calls this directly

Calls 2

isMappedToMethod · 0.80
getSelectedObjectMethod · 0.80

Tested by

no test coverage detected