diff options
| author | Tilka <tilkax@gmail.com> | 2020-01-25 23:04:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-25 23:04:50 +0000 |
| commit | 5dfc9196ab127e52814ac614f21f5f8644ff28f1 (patch) | |
| tree | fd06b073ee0ef38de71d74ed8ade67b9da627774 /Source/Core/DolphinQt/MainWindow.cpp | |
| parent | 9ac77dc91ff3c36d999215d8941bbd8dc7e572d6 (diff) | |
| parent | 956339df4ef7409adb1dcaf415d287fad66bce11 (diff) | |
Merge pull request #8548 from jordan-woyak/wiimote-source-cleanup
Core/WiimoteReal: Wii remote connection pool and source change cleanup.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/MainWindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 88e5aa3f9a..a3102b5449 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -115,6 +115,8 @@ #if defined(HAVE_XRANDR) && HAVE_XRANDR #include "UICommon/X11Utils.h" +// This #define within X11/X.h conflicts with our WiimoteSource enum. +#undef None #endif #if defined(__unix__) || defined(__unix) || defined(__APPLE__) @@ -1593,7 +1595,7 @@ void MainWindow::OnStartRecording() if (SerialInterface::SIDevice_IsGCController(SConfig::GetInstance().m_SIDevice[i])) controllers |= (1 << i); - if (g_wiimote_sources[i] != WIIMOTE_SRC_NONE) + if (WiimoteCommon::GetSource(i) != WiimoteSource::None) controllers |= (1 << (i + 4)); } @@ -1660,7 +1662,7 @@ void MainWindow::ShowTASInput() for (int i = 0; i < num_wii_controllers; i++) { - if (g_wiimote_sources[i] == WIIMOTE_SRC_EMU && + if (WiimoteCommon::GetSource(i) == WiimoteSource::Emulated && (!Core::IsRunning() || SConfig::GetInstance().bWii)) { m_wii_tas_input_windows[i]->show(); |
