Merge pull request #9563 from german77/crash_not_allowed

input_common: Create an update engine
This commit is contained in:
bunnei 2023-01-07 13:41:27 -08:00 committed by GitHub
commit 66e4a48b75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 19 deletions

View file

@ -1434,16 +1434,6 @@ AnalogSticks EmulatedController::GetSticks() const {
return {};
}
// Some drivers like stick from buttons need constant refreshing
for (auto& device : stick_devices) {
if (!device) {
continue;
}
lock.unlock();
device->SoftUpdate();
lock.lock();
}
return controller.analog_stick_state;
}