[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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user