Updated sorting to accomodate for that one specific edge case

This commit is contained in:
kalaposfos13 2024-11-15 11:50:58 +01:00
parent 91e30ac62b
commit f5f988d63e

View File

@ -305,7 +305,9 @@ public:
bool operator<(const BindingConnection& other) const { bool operator<(const BindingConnection& other) const {
// a button is a higher priority than an axis, as buttons can influence axes // a button is a higher priority than an axis, as buttons can influence axes
// (e.g. joystick_halfmode) // (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; return true;
} }
if (binding < other.binding) { if (binding < other.binding) {