summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-07-27 15:02:28 +0800
committerGitHub <noreply@github.com>2017-07-27 15:02:28 +0800
commit7a51b0bcec891b95b3ea98b03e239ec7937ceb13 (patch)
treee9029ad02ce917203b9b637891b23f6a5e246075 /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent5c29ea54c5413384c4e24bff41d7386f22e7be7e (diff)
parent1c33dfc787419d156a5d097fba878f6d09f3c75f (diff)
Merge pull request #5807 from leoetlino/connect-wiimote
Move the Wiimote connect code out of Host
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 89a7cfe832..fc91ccac04 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -22,12 +22,9 @@
#include "Core/BootManager.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
-#include "Core/HW/Wiimote.h"
#include "Core/Host.h"
#include "Core/IOS/IOS.h"
#include "Core/IOS/STM/STM.h"
-#include "Core/IOS/USB/Bluetooth/BTEmu.h"
-#include "Core/IOS/USB/Bluetooth/WiimoteDevice.h"
#include "Core/State.h"
#include "UICommon/CommandLineParse.h"
@@ -131,22 +128,6 @@ bool Host_RendererIsFullscreen()
return rendererIsFullscreen;
}
-void Host_ConnectWiimote(int wm_idx, bool connect)
-{
- Core::QueueHostJob([=] {
- const auto ios = IOS::HLE::GetIOS();
- if (!ios || SConfig::GetInstance().m_bt_passthrough_enabled)
- return;
- Core::RunAsCPUThread([&] {
- const auto bt = std::static_pointer_cast<IOS::HLE::Device::BluetoothEmu>(
- ios->GetDeviceByName("/dev/usb/oh1/57e/305"));
- if (bt)
- bt->AccessWiiMote(wm_idx | 0x100)->Activate(connect);
- Host_UpdateMainFrame();
- });
- });
-}
-
void Host_ShowVideoConfig(void*, const std::string&)
{
}