summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Ghost2021-12-14 22:48:53 -0500
committerGravatar GitHub2021-12-14 22:48:53 -0500
commit935fee18ed6d375154d01e126843470a48ec1dbc (patch)
tree19c2f1c6884d3b042e6bc2bcd49ba54ed27c7762 /src
parentMerge pull request #7581 from lioncash/input-iface (diff)
parentcore/hid: Fix faulty analog triggers (diff)
downloadyuzu-935fee18ed6d375154d01e126843470a48ec1dbc.tar.gz
yuzu-935fee18ed6d375154d01e126843470a48ec1dbc.tar.xz
yuzu-935fee18ed6d375154d01e126843470a48ec1dbc.zip
Merge pull request #7583 from german77/triggered
core/hid: Fix faulty analog triggers
Diffstat (limited to 'src')
-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: