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

Method string

src/InputConfig.h:57–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 std::string string()
58 {
59 if(!configured)
60 return "";
61
62 std::stringstream stream;
63 switch(type)
64 {
65 case TYPE_BUTTON:
66 stream << "Button " << id;
67 break;
68 case TYPE_AXIS:
69 stream << "Axis " << id << (value > 0 ? "+" : "-");
70 break;
71 case TYPE_HAT:
72 stream << "Hat " << id << " " << getHatDir(value);
73 break;
74 case TYPE_KEY:
75 stream << "Key " << SDL_GetKeyName((SDLKey)id);
76 break;
77 default:
78 stream << "Input to string error";
79 break;
80 }
81
82 return stream.str();
83 }
84};
85
86class InputConfig

Callers 5

getBaseNameMethod · 0.80
populateFolderMethod · 0.80
getInputDevicesMethod · 0.80
inputMethod · 0.80
expandPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected