[HID] Fixed some issues with controller/passthrough visibility.
- Moved X_INPUT flags from kernel to HID - Added ability to return input type from driver
This commit is contained in:
@@ -186,6 +186,18 @@ class EmulatorApp final : public xe::ui::WindowedApp {
|
||||
instances.emplace_back(std::move(instance));
|
||||
}
|
||||
}
|
||||
#if XE_PLATFORM_WIN32
|
||||
// Always add winkey for passthrough
|
||||
it = std::find_if(
|
||||
creators_.cbegin(), creators_.cend(),
|
||||
[&name](const auto& f) { return f.name.compare("winkey") == 0; });
|
||||
if (it != creators_.cend() && (*it).is_available()) {
|
||||
auto instance = (*it).instantiate(std::forward<Args>(args)...);
|
||||
if (instance) {
|
||||
instances.emplace_back(std::move(instance));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
for (const auto& creator : creators_) {
|
||||
if (!creator.is_available()) continue;
|
||||
|
||||
Reference in New Issue
Block a user