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

Method updateControllerData

pcsx2/Recording/InputRecording.cpp:201–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200}
201std::optional<PadData> InputRecording::updateControllerData(const int port, const int slot)
202{
203 // Get the PadData from the file
204 const auto frameData = m_file.readPadData(m_frame_counter, port, slot);
205 if (frameData)
206 {
207 // Update the g_key_status appropriately
208 frameData->OverrideActualController();
209 }
210 else
211 {
212 InputRec::consoleLog(fmt::format("Failed to read input data at [{}:{}:{}]", m_frame_counter, port, slot));
213 }
214 return frameData;
215}
216
217void InputRecording::processRecordQueue()
218{

Callers

nothing calls this directly

Calls 4

consoleLogFunction · 0.85
readPadDataMethod · 0.80
formatFunction · 0.50

Tested by

no test coverage detected