mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 09:51:58 +00: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:
parent
7c1d118913
commit
0837e38c39
4 changed files with 12 additions and 17 deletions
|
@ -366,13 +366,13 @@ void PADConfigDialognJoy::UpdateDeviceList()
|
|||
m_Joyname[i]->Clear();
|
||||
|
||||
// Search for devices and add them to the device list
|
||||
if (NumPads > 0)
|
||||
if (joyinfo.size() > 0)
|
||||
{
|
||||
for (int j = 0; j < NumPads; j++)
|
||||
for (int j = 0; j < joyinfo.size(); j++)
|
||||
m_Joyname[i]->Append(wxString::FromAscii(joyinfo.at(j).Name.c_str()));
|
||||
// Set selection
|
||||
//PanicAlert("%s", PadMapping[i].Name.c_str());
|
||||
for (int j = 0; j < NumPads; j++)
|
||||
for (int j = 0; j < joyinfo.size(); j++)
|
||||
{
|
||||
if (joyinfo.at(j).Name == PadMapping[i].Name) m_Joyname[i]->SetSelection(j);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue