diff options
| author | 2023-06-24 18:48:45 -0600 | |
|---|---|---|
| committer | 2023-06-24 18:59:55 -0600 | |
| commit | 5aa208e26417a455abced9c067f75e1b81f2cb80 (patch) | |
| tree | eff9bb064170291d8724fdc59ff2540f17b49b01 /src/core/hid/emulated_controller.cpp | |
| parent | Merge pull request #10891 from german77/sdl28v2 (diff) | |
| download | yuzu-5aa208e26417a455abced9c067f75e1b81f2cb80.tar.gz yuzu-5aa208e26417a455abced9c067f75e1b81f2cb80.tar.xz yuzu-5aa208e26417a455abced9c067f75e1b81f2cb80.zip | |
input_common: Dont try to read/write data from 3rd party controllers
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index c937495f9..190f7c906 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp | |||
| @@ -1250,6 +1250,11 @@ Common::Input::DriverResult EmulatedController::SetPollingMode( | |||
| 1250 | const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode); | 1250 | const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode); |
| 1251 | const auto mapped_nfc_result = right_output_device->SetPollingMode(polling_mode); | 1251 | const auto mapped_nfc_result = right_output_device->SetPollingMode(polling_mode); |
| 1252 | 1252 | ||
| 1253 | // Restore previous state | ||
| 1254 | if (mapped_nfc_result != Common::Input::DriverResult::Success) { | ||
| 1255 | right_output_device->SetPollingMode(Common::Input::PollingMode::Active); | ||
| 1256 | } | ||
| 1257 | |||
| 1253 | if (virtual_nfc_result == Common::Input::DriverResult::Success) { | 1258 | if (virtual_nfc_result == Common::Input::DriverResult::Success) { |
| 1254 | return virtual_nfc_result; | 1259 | return virtual_nfc_result; |
| 1255 | } | 1260 | } |