diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-05-12 22:10:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 22:10:31 +0200 |
| commit | 27d90a7d7b06c8e174c351d17fa057acae9a5112 (patch) | |
| tree | 738e141c5e3e413b09e0f58328793c58c3ff7032 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | |
| parent | dadbeb4bae7e7fa23af2b46e0add4143094dc107 (diff) | |
| parent | c5d2ad99d2b3730f1b79fd549ac46a310bdcb851 (diff) | |
Merge pull request #11779 from ArcaneNibble/sd
Support Steam Deck controls natively through hidraw
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp index 5b7e27ffe1..dfe60c1eae 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp @@ -34,6 +34,9 @@ #ifdef CIFACE_USE_DUALSHOCKUDPCLIENT #include "InputCommon/ControllerInterface/DualShockUDPClient/DualShockUDPClient.h" #endif +#ifdef CIFACE_USE_STEAMDECK +#include "InputCommon/ControllerInterface/SteamDeck/SteamDeck.h" +#endif ControllerInterface g_controller_interface; @@ -78,6 +81,9 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi) #ifdef CIFACE_USE_DUALSHOCKUDPCLIENT m_input_backends.emplace_back(ciface::DualShockUDPClient::CreateInputBackend(this)); #endif +#ifdef CIFACE_USE_STEAMDECK + m_input_backends.emplace_back(ciface::SteamDeck::CreateInputBackend(this)); +#endif // Don't allow backends to add devices before the first RefreshDevices() as they will be cleaned // there. Or they'd end up waiting on the devices mutex if populated from another thread. |
