From f813454d768d084e8ab41c25c76ae2d0f4ed167d Mon Sep 17 00:00:00 2001 From: John Peterson Date: Thu, 29 Jan 2009 08:51:23 +0000 Subject: [PATCH] Wiimote: Fix to last commit git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2034 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp index aab7d66967..8b53608dfd 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp @@ -70,8 +70,8 @@ void RecordingPlay(u8 &_x, u8 &_y, u8 &_z) // Return if the playback speed is unset if(VRecording.at(g_RecordingPlaying).PlaybackSpeed < 0) { + Console::Print("PlaybackSpeed empty: %i\n\n", g_RecordingPlaying); g_RecordingPlaying = -1; - Console::Print("PlaybackSpeed empty\n\n"); return; } @@ -158,7 +158,13 @@ int RecordingCheckKeys(bool Wiimote) bool Match = false; for(int i = 0; i < RECORDING_ROWS; i++) { - if (VRecording.at(i).HotKey == Key) Match = true; + if (VRecording.at(i).HotKey == Key) + { + //Console::Print("Match: %i %i\n", i, Key); + Match = true; + Key = i; + break; + } } // Return nothing if we don't have a match