Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disable wiimote source selection while netplay is running.
  • Loading branch information
RachelBryk committed Nov 12, 2013
1 parent a72b3ca commit 0f94652
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/Core/DolphinWX/Src/WiimoteConfigDiag.cpp
Expand Up @@ -3,6 +3,7 @@
#include "HW/Wiimote.h"
#include "HW/WiimoteReal/WiimoteReal.h"
#include "Frame.h"
#include "NetPlayProto.h"

WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin)
: wxDialog(parent, -1, _("Dolphin Wiimote Configuration"), wxDefaultPosition, wxDefaultSize)
Expand Down Expand Up @@ -134,6 +135,16 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin
WiimoteSpkVolumeText->Disable();
WiimoteSpkVolumeMinText->Disable();
WiimoteSpkVolumeMaxText->Disable();
if (NetPlay::IsNetPlayRunning())
{
bb_source->Disable();
for (int i = 0; i < 4; ++i)
{
wiimote_label[i]->Disable();
wiimote_source_ch[i]->Disable();
}
}

}


Expand Down

0 comments on commit 0f94652

Please sign in to comment.