summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
-rw-r--r--src/core/hid/emulated_controller.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index 2bee173b3..7e05666d6 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) {
885 return SetVibration(device_index, DEFAULT_VIBRATION_VALUE); 885 return SetVibration(device_index, DEFAULT_VIBRATION_VALUE);
886} 886}
887 887
888bool EmulatedController::SetPollingMode(Common::Input::PollingMode polling_mode) {
889 LOG_INFO(Service_HID, "Set polling mode {}", polling_mode);
890 auto& output_device = output_devices[static_cast<std::size_t>(DeviceIndex::Right)];
891 return output_device->SetPollingMode(polling_mode) == Common::Input::PollingError::None;
892}
893
888void EmulatedController::SetLedPattern() { 894void EmulatedController::SetLedPattern() {
889 for (auto& device : output_devices) { 895 for (auto& device : output_devices) {
890 if (!device) { 896 if (!device) {