[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.
This commit is contained in:
Gliniak 2025-03-08 22:52:37 +01:00
parent 34b7085ed3
commit 01fc219fc2
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ X_RESULT InputSystem::GetState(uint32_t user_index, uint32_t flags,
SCOPE_profile_cpu_f("hid");
std::vector<InputDriver*> 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);