diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-11-11 12:14:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-11 12:14:55 +0100 |
| commit | 338bffd1e79f53996202bf49fc864b6ab13b9482 (patch) | |
| tree | bbf46215b23cfb503882023c344d42b0d737a650 /Source/Core/DolphinQt2/Config/ControllersWindow.cpp | |
| parent | 41c2618b1067dfac0c65fe3afeb4cf11dd8323db (diff) | |
| parent | cb47857e8abffb00c390a90718ca9b83d1822fa4 (diff) | |
Merge pull request #6168 from ligfx/movegccwiiu
Qt: make GCPadWiiU a standalone dialog
Diffstat (limited to 'Source/Core/DolphinQt2/Config/ControllersWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/ControllersWindow.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/Source/Core/DolphinQt2/Config/ControllersWindow.cpp b/Source/Core/DolphinQt2/Config/ControllersWindow.cpp index ed8e08a91f..ea54ea880d 100644 --- a/Source/Core/DolphinQt2/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt2/Config/ControllersWindow.cpp @@ -28,6 +28,7 @@ #include "Core/IOS/IOS.h" #include "Core/IOS/USB/Bluetooth/BTReal.h" #include "Core/NetPlayProto.h" +#include "DolphinQt2/Config/Mapping/GCPadWiiUConfigDialog.h" #include "DolphinQt2/Config/Mapping/MappingWindow.h" #include "DolphinQt2/Settings.h" #include "UICommon/UICommon.h" @@ -78,12 +79,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() @@ -423,8 +418,8 @@ void ControllersWindow::OnGCPadConfigure() type = MappingWindow::Type::MAPPING_GCPAD; break; case 2: // GameCube Adapter for Wii U - type = MappingWindow::Type::MAPPING_GCPAD_WIIU; - break; + GCPadWiiUConfigDialog(static_cast<int>(index), this).exec(); + return; case 3: // Steering Wheel type = MappingWindow::Type::MAPPING_GC_STEERINGWHEEL; break; @@ -440,8 +435,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 +463,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() |
