diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2022-10-22 17:33:21 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2022-11-01 21:59:09 -0500 |
| commit | 168a49c87ffbd05512c20db9735b3cb92afac93b (patch) | |
| tree | baf10daa35b4503ad241e7489905c5106f367ba6 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | |
| parent | 2e5cd5d51970fd90e87e54d53fe904cf9d777139 (diff) | |
ControllerInterface: DSU InputBackend implementation.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp index 7f35c8ccfd..6a6affd478 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp @@ -76,7 +76,7 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi) // nothing needed #endif #ifdef CIFACE_USE_DUALSHOCKUDPCLIENT - ciface::DualShockUDPClient::Init(); + m_input_backends.emplace_back(ciface::DualShockUDPClient::CreateInputBackend(this)); #endif // Don't allow backends to add devices before the first RefreshDevices() as they will be cleaned @@ -187,9 +187,6 @@ void ControllerInterface::RefreshDevices(RefreshReason reason) #ifdef CIFACE_USE_PIPES ciface::Pipes::PopulateDevices(); #endif -#ifdef CIFACE_USE_DUALSHOCKUDPCLIENT - ciface::DualShockUDPClient::PopulateDevices(); -#endif for (auto& backend : m_input_backends) backend->PopulateDevices(); @@ -242,9 +239,6 @@ void ControllerInterface::Shutdown() #ifdef CIFACE_USE_ANDROID // nothing needed #endif -#ifdef CIFACE_USE_DUALSHOCKUDPCLIENT - ciface::DualShockUDPClient::DeInit(); -#endif // Empty the container of input backends to deconstruct and deinitialize them. m_input_backends.clear(); |
