Merge pull request #2250 from RachelBryk/tasinput-home

Fix home button in tas input.
This commit is contained in:
skidau 2015-03-29 16:40:57 +11:00
commit 731e4a3a65

View File

@ -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);