mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Gamepad (minor) > Fix to last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4549 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -365,12 +365,12 @@ void WiimotePadConfigDialog::UpdateDeviceList()
|
||||
m_Joyname[i]->Clear();
|
||||
|
||||
// Search for devices and add them to the device list
|
||||
if (WiiMoteEmu::NumPads > 0)
|
||||
if (WiiMoteEmu::joyinfo.size() > 0)
|
||||
{
|
||||
for (int j = 0; j < WiiMoteEmu::NumPads; j++)
|
||||
for (int j = 0; j < WiiMoteEmu::joyinfo.size(); j++)
|
||||
m_Joyname[i]->Append(wxString::FromAscii(WiiMoteEmu::joyinfo.at(j).Name.c_str()));
|
||||
// Set selection
|
||||
for (int j = 0; j < WiiMoteEmu::NumPads; j++)
|
||||
for (int j = 0; j < WiiMoteEmu::joyinfo.size(); j++)
|
||||
if (WiiMoteEmu::joyinfo.at(j).Name == WiiMoteEmu::PadMapping[i].Name) m_Joyname[i]->SetSelection(j);
|
||||
if (m_Joyname[i]->GetSelection() == -1) m_Joyname[i]->SetSelection(0);
|
||||
// Load settings
|
||||
|
Reference in New Issue
Block a user