mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[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:
parent
34b7085ed3
commit
01fc219fc2
|
|
@ -109,6 +109,9 @@ X_RESULT InputSystem::GetState(uint32_t user_index, uint32_t flags,
|
||||||
SCOPE_profile_cpu_f("hid");
|
SCOPE_profile_cpu_f("hid");
|
||||||
|
|
||||||
std::vector<InputDriver*> filtered_drivers = FilterDrivers(flags);
|
std::vector<InputDriver*> filtered_drivers = FilterDrivers(flags);
|
||||||
|
if (filtered_drivers.empty()) {
|
||||||
|
return X_ERROR_DEVICE_NOT_CONNECTED;
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& driver : filtered_drivers) {
|
for (auto& driver : filtered_drivers) {
|
||||||
X_RESULT result = driver->GetState(user_index, out_state);
|
X_RESULT result = driver->GetState(user_index, out_state);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue