diff options
author | german77 <juangerman-13@hotmail.com> | 2021-06-17 05:09:38 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-02-08 17:08:04 +0100 |
commit | fc9abd3c625c3eb8b7cc9445eef1291744ee52f6 (patch) | |
tree | dd69bcaaafcfd4e4e3fed2bb38f0674bd2720294 /src/core/hid/emulated_controller.cpp | |
parent | nfp: Move IUser class to header and add missing enum and structs (diff) | |
download | yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.tar yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.tar.gz yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.tar.bz2 yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.tar.lz yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.tar.xz yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.tar.zst yuzu-fc9abd3c625c3eb8b7cc9445eef1291744ee52f6.zip |
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 a7cdf45e6..61ceea629 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp @@ -884,6 +884,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) { |