MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / addButtonInfoToString

Function addButtonInfoToString

pcsx2/Recording/PadData.cpp:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void addButtonInfoToString(std::string label, std::string& str, std::tuple<bool, u8> buttonInfo)
121{
122 const auto& [pressed, pressure] = buttonInfo;
123 if (pressed)
124 {
125 str += fmt::format(" {}:{}", label, pressure);
126 }
127}
128
129void addButtonInfoToString(std::string label, std::string& str, bool pressed)
130{

Callers 1

LogPadDataMethod · 0.85

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected