From 28fbf6ae0313e0417b80eec6243f9f628bd597e6 Mon Sep 17 00:00:00 2001 From: Anthony Serna Date: Fri, 19 Feb 2016 22:15:52 -0600 Subject: [PATCH] [Netplay] Disable Wiimotes --- Source/Core/DolphinWX/NetPlay/NetWindow.cpp | 1 - .../Core/DolphinWX/NetPlay/PadMapDialog.cpp | 30 ++----------------- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/Source/Core/DolphinWX/NetPlay/NetWindow.cpp b/Source/Core/DolphinWX/NetPlay/NetWindow.cpp index ae77d5fb33..ece17e4fe9 100644 --- a/Source/Core/DolphinWX/NetPlay/NetWindow.cpp +++ b/Source/Core/DolphinWX/NetPlay/NetWindow.cpp @@ -466,7 +466,6 @@ void NetPlayDialog::OnAssignPads(wxCommandEvent&) pmd.ShowModal(); netplay_server->SetPadMapping(pmd.GetModifiedPadMappings()); - netplay_server->SetWiimoteMapping(pmd.GetModifiedWiimoteMappings()); } void NetPlayDialog::OnKick(wxCommandEvent&) diff --git a/Source/Core/DolphinWX/NetPlay/PadMapDialog.cpp b/Source/Core/DolphinWX/NetPlay/PadMapDialog.cpp index 4e3b382479..449ddd1062 100644 --- a/Source/Core/DolphinWX/NetPlay/PadMapDialog.cpp +++ b/Source/Core/DolphinWX/NetPlay/PadMapDialog.cpp @@ -11,10 +11,11 @@ #include "Core/NetPlayServer.h" #include "DolphinWX/NetPlay/PadMapDialog.h" +// Removed Wiimote UI elements due to Wiimotes being flat out broken in netplay. + PadMapDialog::PadMapDialog(wxWindow* parent, NetPlayServer* server, NetPlayClient* client) : wxDialog(parent, wxID_ANY, _("Controller Ports")) , m_pad_mapping(server->GetPadMapping()) - , m_wii_mapping(server->GetWiimoteMapping()) , m_player_list(client->GetPlayers()) { wxBoxSizer* const h_szr = new wxBoxSizer(wxHORIZONTAL); @@ -52,33 +53,6 @@ PadMapDialog::PadMapDialog(wxWindow* parent, NetPlayServer* server, NetPlayClien h_szr->AddSpacer(10); } - for (unsigned int i = 0; i < 4; ++i) - { - wxBoxSizer* const v_szr = new wxBoxSizer(wxVERTICAL); - v_szr->Add(new wxStaticText(this, wxID_ANY, (wxString(_("Wiimote ")) + (wxChar)('1' + i))), - 1, wxALIGN_CENTER_HORIZONTAL); - - m_map_cbox[i + 4] = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, player_names); - m_map_cbox[i + 4]->Bind(wxEVT_CHOICE, &PadMapDialog::OnAdjust, this); - if (m_wii_mapping[i] == -1) - { - m_map_cbox[i + 4]->Select(0); - } - else - { - for (unsigned int j = 0; j < m_player_list.size(); j++) - { - if (m_wii_mapping[i] == m_player_list[j]->pid) - m_map_cbox[i + 4]->Select(j + 1); - } - } - - v_szr->Add(m_map_cbox[i + 4], 1); - - h_szr->Add(v_szr, 1, wxTOP | wxEXPAND, 20); - h_szr->AddSpacer(10); - } - wxBoxSizer* const main_szr = new wxBoxSizer(wxVERTICAL); main_szr->Add(h_szr); main_szr->AddSpacer(5);