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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index eb2e0ab4f..93372445b 100644
--- a/src/core/hid/emulated_controller.cpp
+++ b/src/core/hid/emulated_controller.cpp
@@ -670,7 +670,7 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
670 const auto trigger_value = TransformToTrigger(callback); 670 const auto trigger_value = TransformToTrigger(callback);
671 671
672 // Only read trigger values that have the same uuid or are pressed once 672 // Only read trigger values that have the same uuid or are pressed once
673 if (controller.stick_values[index].uuid != uuid) { 673 if (controller.trigger_values[index].uuid != uuid) {
674 if (!trigger_value.pressed.value) { 674 if (!trigger_value.pressed.value) {
675 return; 675 return;
676 } 676 }
@@ -686,7 +686,7 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
686 return; 686 return;
687 } 687 }
688 688
689 const auto trigger = controller.trigger_values[index]; 689 const auto& trigger = controller.trigger_values[index];
690 690
691 switch (index) { 691 switch (index) {
692 case Settings::NativeTrigger::LTrigger: 692 case Settings::NativeTrigger::LTrigger: