diff options
| author | 2023-01-07 13:41:27 -0800 | |
|---|---|---|
| committer | 2023-01-07 13:41:27 -0800 | |
| commit | 66e4a48b75d7f60cab1349ce896be696b761fb39 (patch) | |
| tree | bba44049730b407d379d4aab995c12515b46fc7b /src/core/hid/emulated_controller.cpp | |
| parent | Merge pull request #9578 from bylaws/patch-2 (diff) | |
| parent | input_common: Create an update engine (diff) | |
| download | yuzu-66e4a48b75d7f60cab1349ce896be696b761fb39.tar.gz yuzu-66e4a48b75d7f60cab1349ce896be696b761fb39.tar.xz yuzu-66e4a48b75d7f60cab1349ce896be696b761fb39.zip | |
Merge pull request #9563 from german77/crash_not_allowed
input_common: Create an update engine
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index 71364c323..7a01f3f4c 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp | |||
| @@ -1434,16 +1434,6 @@ AnalogSticks EmulatedController::GetSticks() const { | |||
| 1434 | return {}; | 1434 | return {}; |
| 1435 | } | 1435 | } |
| 1436 | 1436 | ||
| 1437 | // Some drivers like stick from buttons need constant refreshing | ||
| 1438 | for (auto& device : stick_devices) { | ||
| 1439 | if (!device) { | ||
| 1440 | continue; | ||
| 1441 | } | ||
| 1442 | lock.unlock(); | ||
| 1443 | device->SoftUpdate(); | ||
| 1444 | lock.lock(); | ||
| 1445 | } | ||
| 1446 | |||
| 1447 | return controller.analog_stick_state; | 1437 | return controller.analog_stick_state; |
| 1448 | } | 1438 | } |
| 1449 | 1439 | ||