summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/FrameTools.cpp
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2014-09-14 23:42:32 -0400
committerRachel Bryk <RachelBryk@gmail.com>2014-10-03 12:02:52 -0400
commitc41b31d3ffed348909c3dca9e71318558f1af803 (patch)
tree88743a72c02191d27a9ef595b495ac30c063647e /Source/Core/DolphinWX/FrameTools.cpp
parent0d768bd55e5bc26db94d0b5747b37f47fde34a93 (diff)
Add wiimote tas input.
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
-rw-r--r--Source/Core/DolphinWX/FrameTools.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp
index 94db9866b0..b26d9555e0 100644
--- a/Source/Core/DolphinWX/FrameTools.cpp
+++ b/Source/Core/DolphinWX/FrameTools.cpp
@@ -699,11 +699,18 @@ void CFrame::OnTASInput(wxCommandEvent& event)
for (int i = 0; i < 4; ++i)
{
- if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_CONTROLLER || SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA)
+ if (SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_NONE && SConfig::GetInstance().m_SIDevice[i] != SIDEVICE_GC_GBA)
{
+ g_TASInputDlg[i]->CreateGCLayout();
g_TASInputDlg[i]->Show(true);
g_TASInputDlg[i]->SetTitle("TAS Input - Controller " + number[i]);
}
+ if (g_wiimote_sources[i] == WIIMOTE_SRC_EMU && !(Core::IsRunning() && !SConfig::GetInstance().m_LocalCoreStartupParameter.bWii))
+ {
+ g_TASInputDlg[i+4]->CreateWiiLayout();
+ g_TASInputDlg[i+4]->Show(true);
+ g_TASInputDlg[i+4]->SetTitle("TAS Input - Wiimote " + number[i]);
+ }
}
}