From 35bdfd5ec9b6c0c71e9abdbfd878ca379c573004 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Sat, 28 Mar 2015 07:39:52 -0400 Subject: [PATCH] Fix home button in tas input. --- Source/Core/DolphinWX/TASInputDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/TASInputDlg.cpp b/Source/Core/DolphinWX/TASInputDlg.cpp index b7653d9554..8c021b9a52 100644 --- a/Source/Core/DolphinWX/TASInputDlg.cpp +++ b/Source/Core/DolphinWX/TASInputDlg.cpp @@ -407,7 +407,7 @@ void TASInputDlg::SetButtonValue(Button* button, bool CurrentState) void TASInputDlg::SetWiiButtons(u16* butt) { - for (unsigned int i = 0; i < 10; ++i) + for (unsigned int i = 0; i < 11; ++i) { if (m_buttons[i] != nullptr) *butt |= (m_buttons[i]->checkbox->IsChecked()) ? m_wii_buttons_bitmask[i] : 0; @@ -443,7 +443,7 @@ void TASInputDlg::GetKeyBoardInput(u8* data, WiimoteEmu::ReportFeatures rptf, in if (coreData) { - for (unsigned int i = 0; i < 10; ++i) + for (unsigned int i = 0; i < 11; ++i) { if (m_buttons[i] != nullptr) SetButtonValue(m_buttons[i], (((wm_buttons*)coreData)->hex & m_wii_buttons_bitmask[i]) != 0);