diff options
| author | Ghost <23653025+G-Spawn@users.noreply.github.com> | 2021-12-14 22:48:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-14 22:48:53 -0500 |
| commit | 5f7c630f55397c12f31d63f5901f3ebda5da948d (patch) | |
| tree | 19c2f1c6884d3b042e6bc2bcd49ba54ed27c7762 /src/core/hid/emulated_controller.cpp | |
| parent | 8222f70144ef3e60ff4c50252c22795b1da8512c (diff) | |
| parent | 3e0a577553f614ec5c1fdb91514f71e532d4b4b5 (diff) | |
Merge pull request #7583 from german77/triggered
core/hid: Fix faulty analog triggers
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index eb2e0ab4f9..93372445b2 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: |
