ControllerInterface/Win32: Prevent devcies from losing their "id" on a hotplug event.

This commit is contained in:
Jordan Woyak committed 2019-03-29 09:04:16 -05:00
1 parent d26c1ce24d
commit eadbdd6bc3
10 files changed
+121 -39

No files matched your search

@@ -194,6 +194,11 @@ void Device::UpdateMotors()
}
}
std::optional<int> Device::GetPreferredId() const
{
return m_index;
}
// GET name/source/id
std::string Device::Button::GetName() const