diff options
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) { | |||
| 884 | return SetVibration(device_index, DEFAULT_VIBRATION_VALUE); | 884 | return SetVibration(device_index, DEFAULT_VIBRATION_VALUE); |
| 885 | } | 885 | } |
| 886 | 886 | ||
| 887 | bool EmulatedController::SetPollingMode(Common::Input::PollingMode polling_mode) { | ||
| 888 | LOG_INFO(Service_HID, "Set polling mode {}", polling_mode); | ||
| 889 | auto& output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)]; | ||
| 890 | return output_device->SetPollingMode(polling_mode) == Common::Input::PollingError::None; | ||
| 891 | } | ||
| 892 | |||
| 887 | void EmulatedController::SetLedPattern() { | 893 | void EmulatedController::SetLedPattern() { |
| 888 | for (auto& device : output_devices) { | 894 | for (auto& device : output_devices) { |
| 889 | if (!device) { | 895 | if (!device) { |