mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #2250 from RachelBryk/tasinput-home
Fix home button in tas input.
This commit is contained in:
commit
731e4a3a65
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user