diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2024-03-11 01:42:32 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2024-03-11 03:05:52 -0500 |
| commit | 8098be3dfa07aa529f61ea2ec4ff4077ef01b2d8 (patch) | |
| tree | b3c5cc9566ac69523c1ef25fe407ce880d4dd1ff /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | |
| parent | 498584ac777ac4fc452a83a4380889ef2c99d216 (diff) | |
InputCommon: Add XInput2 InputBackend class.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp index ba3740214a..fa44e8bf79 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp @@ -62,7 +62,7 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi) ciface::Win32::Init(wsi.render_window); #endif #ifdef CIFACE_USE_XLIB -// nothing needed + m_input_backends.emplace_back(ciface::XInput2::CreateInputBackend(this)); #endif #ifdef CIFACE_USE_OSX m_input_backends.emplace_back(ciface::Quartz::CreateInputBackend(this)); @@ -162,10 +162,6 @@ void ControllerInterface::RefreshDevices(RefreshReason reason) #ifdef CIFACE_USE_WIN32 ciface::Win32::PopulateDevices(m_wsi.render_window); #endif -#ifdef CIFACE_USE_XLIB - if (m_wsi.type == WindowSystemType::X11) - ciface::XInput2::PopulateDevices(m_wsi.render_window); -#endif #ifdef CIFACE_USE_ANDROID ciface::Android::PopulateDevices(); #endif @@ -214,9 +210,6 @@ void ControllerInterface::Shutdown() #ifdef CIFACE_USE_WIN32 ciface::Win32::DeInit(); #endif -#ifdef CIFACE_USE_XLIB -// nothing needed -#endif #ifdef CIFACE_USE_ANDROID ciface::Android::Shutdown(); #endif |
