summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
index bb5ccb3f0e..5f20fd475b 100644
--- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp
@@ -30,6 +30,9 @@
#ifdef CIFACE_USE_PIPES
#include "InputCommon/ControllerInterface/Pipes/Pipes.h"
#endif
+#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
+#include "InputCommon/ControllerInterface/CemuHookUDPServer/CemuHookUDPServer.h"
+#endif
ControllerInterface g_controller_interface;
@@ -68,6 +71,9 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi)
#ifdef CIFACE_USE_PIPES
// nothing needed
#endif
+#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
+ ciface::CemuHookUDPServer::Init();
+#endif
RefreshDevices();
}
@@ -122,6 +128,9 @@ void ControllerInterface::RefreshDevices()
#ifdef CIFACE_USE_PIPES
ciface::Pipes::PopulateDevices();
#endif
+#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
+ ciface::CemuHookUDPServer::PopulateDevices();
+#endif
m_is_populating_devices = false;
InvokeDevicesChangedCallbacks();
@@ -172,6 +181,9 @@ void ControllerInterface::Shutdown()
#ifdef CIFACE_USE_EVDEV
ciface::evdev::Shutdown();
#endif
+#ifdef CIFACE_USE_CEMUHOOKUDPSERVER
+ ciface::CemuHookUDPServer::DeInit();
+#endif
}
void ControllerInterface::AddDevice(std::shared_ptr<ciface::Core::Device> device)