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

Function inputTypeToString

src/InputConfig.cpp:9–24  ·  view source on GitHub ↗

some util functions

Source from the content-addressed store, hash-verified

7
8//some util functions
9std::string inputTypeToString(InputType type)
10{
11 switch(type)
12 {
13 case TYPE_AXIS:
14 return "axis";
15 case TYPE_BUTTON:
16 return "button";
17 case TYPE_HAT:
18 return "hat";
19 case TYPE_KEY:
20 return "key";
21 default:
22 return "error";
23 }
24}
25
26InputType stringToInputType(const std::string& type)
27{

Callers 1

writeToXMLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected