mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Remove UDPWiimote feature
It substantially complicates the code and doesn't really provide any functionality. According to the forums, the Android app is out of date and has been broken for quite a while. If we want to add this back, I'd write an app that speaks a more native Wiimote protocol, and we can hook that up to the backend quite easily. It could even be over our NetPlay protocol!
This commit is contained in:
@ -89,7 +89,6 @@ if(wxWidgets_FOUND)
|
||||
PHackSettings.cpp
|
||||
PatchAddEdit.cpp
|
||||
TASInputDlg.cpp
|
||||
UDPConfigDiag.cpp
|
||||
VideoConfigDiag.cpp
|
||||
WXInputBase.cpp
|
||||
WiimoteConfigDiag.cpp
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
@ -95,7 +95,6 @@
|
||||
<PrecompiledHeader>Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="TASInputDlg.cpp" />
|
||||
<ClCompile Include="UDPConfigDiag.cpp" />
|
||||
<ClCompile Include="VideoConfigDiag.cpp" />
|
||||
<ClCompile Include="WiimoteConfigDiag.cpp" />
|
||||
<ClCompile Include="WXInputBase.cpp" />
|
||||
@ -144,7 +143,6 @@
|
||||
<ClInclude Include="PHackSettings.h" />
|
||||
<ClInclude Include="stdafx.h" />
|
||||
<ClInclude Include="TASInputDlg.h" />
|
||||
<ClInclude Include="UDPConfigDiag.h" />
|
||||
<ClInclude Include="VideoConfigDiag.h" />
|
||||
<ClInclude Include="WiimoteConfigDiag.h" />
|
||||
<ClInclude Include="WXInputBase.h" />
|
||||
@ -230,4 +228,4 @@
|
||||
<Message Text="Copy: @(BinaryFiles) -> $(BinaryOutputDir)" Importance="High" />
|
||||
<Copy SourceFiles="@(BinaryFiles)" DestinationFolder="$(BinaryOutputDir)" />
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="GUI">
|
||||
@ -152,9 +152,6 @@
|
||||
<ClCompile Include="TASInputDlg.cpp">
|
||||
<Filter>GUI</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="UDPConfigDiag.cpp">
|
||||
<Filter>GUI</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="WiimoteConfigDiag.cpp">
|
||||
<Filter>GUI</Filter>
|
||||
</ClCompile>
|
||||
@ -280,9 +277,6 @@
|
||||
<ClInclude Include="TASInputDlg.h">
|
||||
<Filter>GUI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="UDPConfigDiag.h">
|
||||
<Filter>GUI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="WiimoteConfigDiag.h">
|
||||
<Filter>GUI</Filter>
|
||||
</ClInclude>
|
||||
@ -302,4 +296,4 @@
|
||||
<Filter>Resources</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
@ -45,7 +45,6 @@
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Core/HW/Wiimote.h"
|
||||
#include "DolphinWX/InputConfigDiag.h"
|
||||
#include "DolphinWX/UDPConfigDiag.h"
|
||||
#include "DolphinWX/WxUtils.h"
|
||||
#include "InputCommon/ControllerEmu.h"
|
||||
#include "InputCommon/InputConfig.h"
|
||||
@ -53,18 +52,10 @@
|
||||
#include "InputCommon/ControllerInterface/Device.h"
|
||||
#include "InputCommon/ControllerInterface/ExpressionParser.h"
|
||||
|
||||
class UDPWrapper;
|
||||
class wxWindow;
|
||||
|
||||
using namespace ciface::ExpressionParser;
|
||||
|
||||
void GamepadPage::ConfigUDPWii(wxCommandEvent &event)
|
||||
{
|
||||
UDPWrapper* const wrp = ((UDPConfigButton*)event.GetEventObject())->wrapper;
|
||||
UDPConfigDiag diag(this, wrp);
|
||||
diag.ShowModal();
|
||||
}
|
||||
|
||||
void GamepadPage::ConfigExtension(wxCommandEvent& event)
|
||||
{
|
||||
ControllerEmu::Extension* const ex = ((ExtensionButton*)event.GetEventObject())->extension;
|
||||
@ -883,13 +874,6 @@ ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWin
|
||||
Add(configure_btn, 0, wxALL|wxEXPAND, 3);
|
||||
}
|
||||
break;
|
||||
case GROUP_TYPE_UDPWII:
|
||||
{
|
||||
wxButton* const btn = new UDPConfigButton(parent, (UDPWrapper*)group);
|
||||
btn->Bind(wxEVT_BUTTON, &GamepadPage::ConfigUDPWii, eventsink);
|
||||
Add(btn, 0, wxALL|wxEXPAND, 3);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
//options
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "InputCommon/ControllerInterface/Device.h"
|
||||
|
||||
class InputPlugin;
|
||||
class UDPWrapper;
|
||||
class wxComboBox;
|
||||
class wxCommandEvent;
|
||||
class wxEvent;
|
||||
@ -147,16 +146,6 @@ public:
|
||||
ControllerInterface::ControlReference* const control_reference;
|
||||
};
|
||||
|
||||
class UDPConfigButton : public wxButton
|
||||
{
|
||||
public:
|
||||
UDPWrapper* const wrapper;
|
||||
UDPConfigButton(wxWindow* const parent, UDPWrapper * udp)
|
||||
: wxButton(parent, -1, _("Configure"), wxDefaultPosition)
|
||||
, wrapper(udp)
|
||||
{}
|
||||
};
|
||||
|
||||
class ControlGroupBox : public wxBoxSizer
|
||||
{
|
||||
public:
|
||||
@ -200,8 +189,6 @@ public:
|
||||
|
||||
void ConfigExtension(wxCommandEvent& event);
|
||||
|
||||
void ConfigUDPWii(wxCommandEvent& event);
|
||||
|
||||
void SetDevice(wxCommandEvent& event);
|
||||
|
||||
void ClearAll(wxCommandEvent& event);
|
||||
|
@ -1,86 +0,0 @@
|
||||
#include <string>
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/defs.h>
|
||||
#include <wx/dialog.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/stattext.h>
|
||||
#include <wx/textctrl.h>
|
||||
#include <wx/translation.h>
|
||||
|
||||
#include "DolphinWX/UDPConfigDiag.h"
|
||||
#include "DolphinWX/WxUtils.h"
|
||||
#include "InputCommon/UDPWrapper.h"
|
||||
|
||||
class wxWindow;
|
||||
|
||||
UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) :
|
||||
wxDialog(parent, -1, _("UDP Wiimote")),
|
||||
wrp(_wrp)
|
||||
{
|
||||
wxBoxSizer *const outer_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
wxBoxSizer *const sizer1 = new wxBoxSizer(wxVERTICAL);
|
||||
wxStaticBoxSizer *const sizer2 = new wxStaticBoxSizer(wxVERTICAL, this, _("Update"));
|
||||
|
||||
outer_sizer->Add(sizer1, 0, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, 5);
|
||||
outer_sizer->Add(sizer2, 1, wxLEFT | wxRIGHT | wxEXPAND, 10);
|
||||
|
||||
enable = new wxCheckBox(this, wxID_ANY, _("Enable"));
|
||||
butt = new wxCheckBox(this, wxID_ANY, _("Buttons"));
|
||||
accel = new wxCheckBox(this, wxID_ANY, _("Acceleration"));
|
||||
point = new wxCheckBox(this, wxID_ANY, _("IR Pointer"));
|
||||
nun = new wxCheckBox(this, wxID_ANY, _("Nunchuk"));
|
||||
nunaccel = new wxCheckBox(this, wxID_ANY, _("Nunchuk Acceleration"));
|
||||
|
||||
wxBoxSizer *const port_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
port_sizer->Add(new wxStaticText(this, wxID_ANY, _("UDP Port:")), 0, wxALIGN_CENTER);
|
||||
port_tbox = new wxTextCtrl(this, wxID_ANY, StrToWxStr(wrp->port));
|
||||
port_sizer->Add(port_tbox, 1, wxLEFT | wxEXPAND, 5);
|
||||
|
||||
enable->Bind(wxEVT_CHECKBOX, &UDPConfigDiag::ChangeState, this);
|
||||
butt->Bind(wxEVT_CHECKBOX, &UDPConfigDiag::ChangeUpdateFlags, this);
|
||||
accel->Bind(wxEVT_CHECKBOX, &UDPConfigDiag::ChangeUpdateFlags, this);
|
||||
point->Bind(wxEVT_CHECKBOX, &UDPConfigDiag::ChangeUpdateFlags, this);
|
||||
nun->Bind(wxEVT_CHECKBOX, &UDPConfigDiag::ChangeUpdateFlags, this);
|
||||
nunaccel->Bind(wxEVT_CHECKBOX, &UDPConfigDiag::ChangeUpdateFlags, this);
|
||||
port_tbox->Bind(wxEVT_TEXT, &UDPConfigDiag::ChangeState, this);
|
||||
|
||||
enable->SetValue(wrp->udpEn);
|
||||
butt->SetValue(wrp->updButt);
|
||||
accel->SetValue(wrp->updAccel);
|
||||
point->SetValue(wrp->updIR);
|
||||
nun->SetValue(wrp->updNun);
|
||||
nunaccel->SetValue(wrp->updNunAccel);
|
||||
|
||||
sizer1->Add(enable, 1, wxALL | wxEXPAND, 5);
|
||||
sizer1->Add(port_sizer, 1, wxBOTTOM | wxLEFT| wxRIGHT | wxEXPAND, 5);
|
||||
|
||||
sizer2->Add(butt, 1, wxALL | wxEXPAND, 5);
|
||||
sizer2->Add(accel, 1, wxALL | wxEXPAND, 5);
|
||||
sizer2->Add(point, 1, wxALL | wxEXPAND, 5);
|
||||
sizer2->Add(nun, 1, wxALL | wxEXPAND, 5);
|
||||
sizer2->Add(nunaccel, 1, wxALL | wxEXPAND, 5);
|
||||
|
||||
outer_sizer->Add(CreateButtonSizer(wxOK), 0, wxALL | wxALIGN_RIGHT, 5);
|
||||
|
||||
SetSizerAndFit(outer_sizer);
|
||||
Center();
|
||||
SetFocus();
|
||||
}
|
||||
|
||||
void UDPConfigDiag::ChangeUpdateFlags(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wrp->updAccel=accel->GetValue();
|
||||
wrp->updButt=butt->GetValue();
|
||||
wrp->updIR=point->GetValue();
|
||||
wrp->updNun=nun->GetValue();
|
||||
wrp->updNunAccel=nunaccel->GetValue();
|
||||
}
|
||||
|
||||
void UDPConfigDiag::ChangeState(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
wrp->udpEn = enable->GetValue();
|
||||
wrp->port = WxStrToStr(port_tbox->GetValue());
|
||||
wrp->Refresh();
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <wx/dialog.h>
|
||||
|
||||
class UDPWrapper;
|
||||
class wxCheckBox;
|
||||
class wxCommandEvent;
|
||||
class wxTextCtrl;
|
||||
class wxWindow;
|
||||
|
||||
class UDPConfigDiag : public wxDialog
|
||||
{
|
||||
public:
|
||||
UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp);
|
||||
private:
|
||||
UDPWrapper * wrp;
|
||||
void ChangeUpdateFlags(wxCommandEvent & event);
|
||||
void ChangeState(wxCommandEvent & event);
|
||||
void OKPressed(wxCommandEvent & event);
|
||||
wxCheckBox * enable;
|
||||
wxCheckBox * butt;
|
||||
wxCheckBox * accel;
|
||||
wxCheckBox * point;
|
||||
wxCheckBox * nun;
|
||||
wxCheckBox * nunaccel;
|
||||
wxTextCtrl * port_tbox;
|
||||
};
|
Reference in New Issue
Block a user