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

Method PollInputOnCPUThread

pcsx2/VMManager.cpp:2924–2945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2922}
2923
2924void VMManager::Internal::PollInputOnCPUThread()
2925{
2926 Host::PumpMessagesOnCPUThread();
2927 InputManager::PollSources();
2928
2929 if (EmuConfig.EnableRecordingTools)
2930 {
2931 // This code is called _before_ Counter's vsync end, and _after_ vsync start
2932 if (g_InputRecording.isActive())
2933 {
2934 // Process any outstanding recording actions (ie. toggle mode, stop the recording, etc)
2935 g_InputRecording.processRecordQueue();
2936 g_InputRecording.getControls().processControlQueue();
2937 // Increment our internal frame counter, used to keep track of when we hit the end, etc.
2938 g_InputRecording.incFrameCounter();
2939 g_InputRecording.handleExceededFrameCounter();
2940 }
2941 // At this point, the PAD data has been read from the user for the current frame
2942 // so we can either read from it, or overwrite it!
2943 g_InputRecording.handleControllerDataUpdate();
2944 }
2945}
2946
2947void VMManager::CheckForCPUConfigChanges(const Pcsx2Config& old_config)
2948{

Callers

nothing calls this directly

Calls 6

isActiveMethod · 0.80
processRecordQueueMethod · 0.80
processControlQueueMethod · 0.80
incFrameCounterMethod · 0.80

Tested by

no test coverage detected