mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Updated sorting to accomodate for that one specific edge case
This commit is contained in:
parent
91e30ac62b
commit
f5f988d63e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user