mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 02:39:56 +00:00
Qt MappingWindow: move controller type into constructor
This commit is contained in:
parent
bb38b39952
commit
27e1577da9
5 changed files with 14 additions and 36 deletions
|
@ -78,12 +78,6 @@ ControllersWindow::ControllersWindow(QWidget* parent) : QDialog(parent)
|
|||
CreateMainLayout();
|
||||
LoadSettings();
|
||||
ConnectWidgets();
|
||||
|
||||
for (size_t i = 0; i < m_gc_mappings.size(); i++)
|
||||
m_gc_mappings[i] = new MappingWindow(this, static_cast<int>(i));
|
||||
|
||||
for (size_t i = 0; i < m_wiimote_mappings.size(); i++)
|
||||
m_wiimote_mappings[i] = new MappingWindow(this, static_cast<int>(i));
|
||||
}
|
||||
|
||||
void ControllersWindow::CreateGamecubeLayout()
|
||||
|
@ -440,8 +434,8 @@ void ControllersWindow::OnGCPadConfigure()
|
|||
default:
|
||||
return;
|
||||
}
|
||||
m_gc_mappings[index]->ChangeMappingType(type);
|
||||
m_gc_mappings[index]->exec();
|
||||
|
||||
MappingWindow(this, type, static_cast<int>(index)).exec();
|
||||
}
|
||||
|
||||
void ControllersWindow::OnWiimoteConfigure()
|
||||
|
@ -468,8 +462,8 @@ void ControllersWindow::OnWiimoteConfigure()
|
|||
default:
|
||||
return;
|
||||
}
|
||||
m_wiimote_mappings[index]->ChangeMappingType(type);
|
||||
m_wiimote_mappings[index]->exec();
|
||||
|
||||
MappingWindow(this, type, static_cast<int>(index)).exec();
|
||||
}
|
||||
|
||||
void ControllersWindow::UnimplementedButton()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue