diff options
| author | 2023-01-13 13:39:33 -0600 | |
|---|---|---|
| committer | 2023-01-19 18:05:23 -0600 | |
| commit | 4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3 (patch) | |
| tree | c104ff9a8a48cf29fd3dc67c84f5af71224744f7 /src/core/hle/service/nfp | |
| parent | input_common: Drop Pro controller support from custom driver (diff) | |
| download | yuzu-4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3.tar.gz yuzu-4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3.tar.xz yuzu-4a307a7b3aa3afea7d62674f6cf40b76f3ffb5e3.zip | |
core: hid: Only set the polling mode to the correct side
Diffstat (limited to 'src/core/hle/service/nfp')
| -rw-r--r-- | src/core/hle/service/nfp/nfp_device.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/nfp/nfp_device.cpp b/src/core/hle/service/nfp/nfp_device.cpp index 7b8013961..e67a76f55 100644 --- a/src/core/hle/service/nfp/nfp_device.cpp +++ b/src/core/hle/service/nfp/nfp_device.cpp | |||
| @@ -152,7 +152,8 @@ Result NfpDevice::StartDetection(TagProtocol allowed_protocol) { | |||
| 152 | return WrongDeviceState; | 152 | return WrongDeviceState; |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | if (npad_device->SetPollingMode(Common::Input::PollingMode::NFC) != | 155 | if (npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex, |
| 156 | Common::Input::PollingMode::NFC) != | ||
| 156 | Common::Input::DriverResult::Success) { | 157 | Common::Input::DriverResult::Success) { |
| 157 | LOG_ERROR(Service_NFP, "Nfc not supported"); | 158 | LOG_ERROR(Service_NFP, "Nfc not supported"); |
| 158 | return NfcDisabled; | 159 | return NfcDisabled; |
| @@ -164,7 +165,8 @@ Result NfpDevice::StartDetection(TagProtocol allowed_protocol) { | |||
| 164 | } | 165 | } |
| 165 | 166 | ||
| 166 | Result NfpDevice::StopDetection() { | 167 | Result NfpDevice::StopDetection() { |
| 167 | npad_device->SetPollingMode(Common::Input::PollingMode::Active); | 168 | npad_device->SetPollingMode(Core::HID::EmulatedDeviceIndex::RightIndex, |
| 169 | Common::Input::PollingMode::Active); | ||
| 168 | 170 | ||
| 169 | if (device_state == DeviceState::Initialized) { | 171 | if (device_state == DeviceState::Initialized) { |
| 170 | return ResultSuccess; | 172 | return ResultSuccess; |