diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-11-12 17:26:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-12 17:26:03 +0100 |
| commit | 97e3200f5799cb43f508fd6c385321bc778c5ffb (patch) | |
| tree | 4fb4833f00991fdea4d75a773f13bc736639f3ea /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | |
| parent | 4de7161eaa9a59c6b80f179c66abd3015bf3b4c9 (diff) | |
| parent | 6392be61ebf00188cd048b42c99fff60f0a56139 (diff) | |
Merge pull request #7519 from stenzek/controller-window
Core: Switch controller interface to render surface on booting
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h index c576b20fb3..d5567222a4 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h @@ -10,6 +10,7 @@ #include <mutex> #include <vector> +#include "Common/WindowSystemInfo.h" #include "InputCommon/ControllerInterface/Device.h" // enable disable sources @@ -39,8 +40,9 @@ class ControllerInterface : public ciface::Core::DeviceContainer { public: - ControllerInterface() : m_is_init(false), m_hwnd(nullptr) {} - void Initialize(void* const hwnd); + ControllerInterface() : m_is_init(false) {} + void Initialize(const WindowSystemInfo& wsi); + void ChangeWindow(void* hwnd); void RefreshDevices(); void Shutdown(); void AddDevice(std::shared_ptr<ciface::Core::Device> device); @@ -56,7 +58,7 @@ private: mutable std::mutex m_callbacks_mutex; bool m_is_init; std::atomic<bool> m_is_populating_devices{false}; - void* m_hwnd; + WindowSystemInfo m_wsi; }; extern ControllerInterface g_controller_interface; |
