diff options
| author | 2022-10-05 14:13:57 -0700 | |
|---|---|---|
| committer | 2022-10-05 14:13:57 -0700 | |
| commit | 1689530f520f72ca198de421519fd2d6658af2d1 (patch) | |
| tree | 3daa0c297084278fdb67b8f3d1f61ca62794b870 /src/core/hid/emulated_controller.cpp | |
| parent | Show error from cpp-httplib when we don't have a response to read (report err... (diff) | |
| parent | service: nfp: Fix errors to pass unit testing (diff) | |
| download | yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.gz yuzu-1689530f520f72ca198de421519fd2d6658af2d1.tar.xz yuzu-1689530f520f72ca198de421519fd2d6658af2d1.zip | |
Merge pull request #9015 from german77/amiibo-rewrite
service: nfp: Fix errors to pass unit testing
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index e27d84734..025f1c78e 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp | |||
| @@ -1017,9 +1017,11 @@ bool EmulatedController::SetPollingMode(Common::Input::PollingMode polling_mode) | |||
| 1017 | auto& output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)]; | 1017 | auto& output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)]; |
| 1018 | auto& nfc_output_device = output_devices[3]; | 1018 | auto& nfc_output_device = output_devices[3]; |
| 1019 | 1019 | ||
| 1020 | nfc_output_device->SetPollingMode(polling_mode); | 1020 | const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode); |
| 1021 | const auto mapped_nfc_result = output_device->SetPollingMode(polling_mode); | ||
| 1021 | 1022 | ||
| 1022 | return output_device->SetPollingMode(polling_mode) == Common::Input::PollingError::None; | 1023 | return virtual_nfc_result == Common::Input::PollingError::None || |
| 1024 | mapped_nfc_result == Common::Input::PollingError::None; | ||
| 1023 | } | 1025 | } |
| 1024 | 1026 | ||
| 1025 | bool EmulatedController::SetCameraFormat( | 1027 | bool EmulatedController::SetCameraFormat( |