input_common: Create an update engine
This commit is contained in:
parent
25b5675997
commit
243f2931b5
4 changed files with 37 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue