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

Function stringToInputType

src/InputConfig.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26InputType stringToInputType(const std::string& type)
27{
28 if(type == "axis")
29 return TYPE_AXIS;
30 if(type == "button")
31 return TYPE_BUTTON;
32 if(type == "hat")
33 return TYPE_HAT;
34 if(type == "key")
35 return TYPE_KEY;
36 return TYPE_COUNT;
37}
38
39
40std::string toLower(std::string str)

Callers 1

loadFromXMLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected