From f5f988d63e42f2f56f2fb2931b26b0b9319c2cf8 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:50:58 +0100 Subject: [PATCH] Updated sorting to accomodate for that one specific edge case --- src/input/input_handler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/input_handler.h b/src/input/input_handler.h index 8a76beae2..85a78a6e4 100644 --- a/src/input/input_handler.h +++ b/src/input/input_handler.h @@ -305,7 +305,9 @@ public: bool operator<(const BindingConnection& other) const { // a button is a higher priority than an axis, as buttons can influence axes // (e.g. joystick_halfmode) - if (output->IsButton() && other.output->IsAxis()) { + if (output->IsButton() && + (other.output->IsAxis() && (other.output->axis != Axis::TriggerLeft && + other.output->axis != Axis::TriggerRight))) { return true; } if (binding < other.binding) {