diff options
| author | bunnei <bunneidev@gmail.com> | 2022-02-19 00:57:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-19 00:57:47 -0700 |
| commit | 5e81f38950da208444ff9e2f5748e67ce0b5580c (patch) | |
| tree | 269412e42ab54fdef3132c77f173a098867aceb7 /src/core/hid/emulated_controller.cpp | |
| parent | c792b21b689cbdd9f8805fe0b4dbf232ebb97712 (diff) | |
| parent | c2942fa5c3dfd33dee5d5342b3c432b6a0eefbe0 (diff) | |
Merge pull request #7867 from german77/amiibo
nfp: Improve amiibo support
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index 2bee173b35..7e05666d6b 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -885,6 +885,12 @@ bool EmulatedController::TestVibration(std::size_t device_index) { return SetVibration(device_index, DEFAULT_VIBRATION_VALUE); } +bool EmulatedController::SetPollingMode(Common::Input::PollingMode polling_mode) { + LOG_INFO(Service_HID, "Set polling mode {}", polling_mode); + auto& output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)]; + return output_device->SetPollingMode(polling_mode) == Common::Input::PollingError::None; +} + void EmulatedController::SetLedPattern() { for (auto& device : output_devices) { if (!device) { |
