input_common: Dont try to read/write data from 3rd party controllers
This commit is contained in:
parent
39e63bfe19
commit
4c2f8ac0eb
4 changed files with 42 additions and 14 deletions
src/core/hid
|
@ -1250,6 +1250,11 @@ Common::Input::DriverResult EmulatedController::SetPollingMode(
|
|||
const auto virtual_nfc_result = nfc_output_device->SetPollingMode(polling_mode);
|
||||
const auto mapped_nfc_result = right_output_device->SetPollingMode(polling_mode);
|
||||
|
||||
// Restore previous state
|
||||
if (mapped_nfc_result != Common::Input::DriverResult::Success) {
|
||||
right_output_device->SetPollingMode(Common::Input::PollingMode::Active);
|
||||
}
|
||||
|
||||
if (virtual_nfc_result == Common::Input::DriverResult::Success) {
|
||||
return virtual_nfc_result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue