From 01fc219fc2503250fef987dfae94dfa6f3fa7ae2 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sat, 8 Mar 2025 22:52:37 +0100 Subject: [PATCH] [HID] Fixed issue with controller spamming message. This was caused by not ignoring cases when title provides unsupported flags. For example support for big button controller. --- src/xenia/hid/input_system.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xenia/hid/input_system.cc b/src/xenia/hid/input_system.cc index 4f0e678d9..10c27bfcd 100644 --- a/src/xenia/hid/input_system.cc +++ b/src/xenia/hid/input_system.cc @@ -109,6 +109,9 @@ X_RESULT InputSystem::GetState(uint32_t user_index, uint32_t flags, SCOPE_profile_cpu_f("hid"); std::vector filtered_drivers = FilterDrivers(flags); + if (filtered_drivers.empty()) { + return X_ERROR_DEVICE_NOT_CONNECTED; + } for (auto& driver : filtered_drivers) { X_RESULT result = driver->GetState(user_index, out_state);