From 0bf25c91abefa14e94310b71556d5c21201ee850 Mon Sep 17 00:00:00 2001 From: smelenchuk Date: Sun, 13 Feb 2011 02:01:31 +0000 Subject: [PATCH] Have Wiimote update call Frame::SetPolledDevice() so that recordings can track lag frames. (At present, the circumstances in which there actually would be a frame where input isn't polled elude me, but might as well be complete.) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7157 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/WiimoteEmu/WiimoteEmu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/Src/HW/WiimoteEmu/WiimoteEmu.cpp b/Source/Core/Core/Src/HW/WiimoteEmu/WiimoteEmu.cpp index 8896d48ff7..d503230c2e 100644 --- a/Source/Core/Core/Src/HW/WiimoteEmu/WiimoteEmu.cpp +++ b/Source/Core/Core/Src/HW/WiimoteEmu/WiimoteEmu.cpp @@ -670,6 +670,8 @@ void Wiimote::Update() // figure out what data we need s8 rptf_size = MAX_PAYLOAD; + Frame::SetPolledDevice(); + if (!Frame::IsPlayingInput() || !Frame::PlayWiimote(m_index, data, rptf_size)) { const ReportFeatures& rptf = reporting_mode_features[m_reporting_mode - WM_REPORT_CORE];