input_common: Create an update engine

This commit is contained in:
Narr the Reg 2023-01-05 19:16:55 -06:00
parent 25b5675997
commit 243f2931b5
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;
}