From 076a262b9e936860411213f3d2e2d2de97664c88 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 20 Oct 2020 11:30:15 -0500 Subject: InputCommon: Add Windows.Gaming.Input to ControllerInterface. --- Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/Win32') diff --git a/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp index a6ff77511e..a9c28efdc0 100644 --- a/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp @@ -16,6 +16,7 @@ #include "Common/ScopeGuard.h" #include "Common/Thread.h" #include "InputCommon/ControllerInterface/DInput/DInput.h" +#include "InputCommon/ControllerInterface/WGInput/WGInput.h" #include "InputCommon/ControllerInterface/XInput/XInput.h" constexpr UINT WM_DOLPHIN_STOP = WM_USER; @@ -42,6 +43,7 @@ static LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wparam, LPARA g_controller_interface.PlatformPopulateDevices([] { ciface::DInput::PopulateDevices(s_hwnd); ciface::XInput::PopulateDevices(); + ciface::WGInput::PopulateDevices(); }); } } @@ -53,6 +55,7 @@ void ciface::Win32::Init(void* hwnd) { s_hwnd = static_cast(hwnd); XInput::Init(); + WGInput::Init(); std::promise message_window_promise; @@ -147,6 +150,7 @@ void ciface::Win32::PopulateDevices(void* hwnd) s_first_populate_devices_asked.Set(); ciface::DInput::PopulateDevices(s_hwnd); ciface::XInput::PopulateDevices(); + ciface::WGInput::PopulateDevices(); } else { @@ -179,4 +183,5 @@ void ciface::Win32::DeInit() s_hwnd = nullptr; XInput::DeInit(); + WGInput::DeInit(); } -- cgit v1.2.3