diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-09 09:57:37 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-29 09:04:16 -0500 |
| commit | eadbdd6bc389cd89c3e3e57a31dabaeadf161865 (patch) | |
| tree | e64941bcb188067cf5355a9cee1a74b42a5ae6ab /Source/Core/InputCommon/ControllerInterface/Device.cpp | |
| parent | d26c1ce24d9108114d7eab97cfc2ab4f3eea28ee (diff) | |
ControllerInterface/Win32: Prevent devcies from losing their "id" on a hotplug event.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Device.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.cpp b/Source/Core/InputCommon/ControllerInterface/Device.cpp index 14f5cb23d9..4cd50fa08e 100644 --- a/Source/Core/InputCommon/ControllerInterface/Device.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Device.cpp @@ -31,6 +31,11 @@ Device::~Device() delete output; } +std::optional<int> Device::GetPreferredId() const +{ + return {}; +} + void Device::AddInput(Device::Input* const i) { m_inputs.push_back(i); |
