summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2021-12-15 02:20:07 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2021-12-15 02:49:44 +0100
commit6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c (patch)
tree19c2f1c6884d3b042e6bc2bcd49ba54ed27c7762
parentMerge pull request #7581 from lioncash/input-iface (diff)
downloadyuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.tar
yuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.tar.gz
yuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.tar.bz2
yuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.tar.lz
yuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.tar.xz
yuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.tar.zst
yuzu-6aac5d4c27411a43200e0a9c0f96b2ec7fac9b7c.zip
-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
const auto trigger_value = TransformToTrigger(callback);
// Only read trigger values that have the same uuid or are pressed once
- if (controller.stick_values[index].uuid != uuid) {
+ if (controller.trigger_values[index].uuid != uuid) {
if (!trigger_value.pressed.value) {
return;
}
@@ -686,7 +686,7 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
return;
}
- const auto trigger = controller.trigger_values[index];
+ const auto& trigger = controller.trigger_values[index];
switch (index) {
case Settings::NativeTrigger::LTrigger: