diff options
| author | 2021-10-22 23:04:06 -0500 | |
|---|---|---|
| committer | 2021-11-24 20:30:25 -0600 | |
| commit | b564f024f0be5023cf13fb2fca953ea6c1feeeb6 (patch) | |
| tree | bb2fb272058a239a345856d4b34389791ea0a783 /src/core/hid/emulated_controller.cpp | |
| parent | service/hid: Match shared memory closer to HW (diff) | |
| download | yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.gz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.xz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.zip | |
Morph review first wave
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index d59758e99..228f80183 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp | |||
| @@ -865,10 +865,10 @@ BatteryLevelState EmulatedController::GetBattery() const { | |||
| 865 | return controller.battery_state; | 865 | return controller.battery_state; |
| 866 | } | 866 | } |
| 867 | 867 | ||
| 868 | void EmulatedController::TriggerOnChange(ControllerTriggerType type, bool is_service_update) { | 868 | void EmulatedController::TriggerOnChange(ControllerTriggerType type, bool is_npad_service_update) { |
| 869 | for (const std::pair<int, ControllerUpdateCallback> poller_pair : callback_list) { | 869 | for (const auto& poller_pair : callback_list) { |
| 870 | const ControllerUpdateCallback& poller = poller_pair.second; | 870 | const ControllerUpdateCallback& poller = poller_pair.second; |
| 871 | if (!is_service_update && poller.is_service) { | 871 | if (!is_npad_service_update && poller.is_npad_service) { |
| 872 | continue; | 872 | continue; |
| 873 | } | 873 | } |
| 874 | if (poller.on_change) { | 874 | if (poller.on_change) { |