mirror of
https://github.com/xenia-project/xenia.git
synced 2026-04-06 23:23:38 +00: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue