Fixed an issue where trigger input in menus wasn't handled correctly.

This commit is contained in:
Leon Styhre 2020-08-02 15:04:43 +02:00
parent dec3a74e16
commit 3923ad32c6

View file

@ -92,12 +92,16 @@ bool ComponentList::input(InputConfig* config, Input input)
return listInput(input.value != 0 ? 6 : 0);
}
else if (config->isMappedLike("lefttrigger", input)) {
mSelectorBarOffset = 0;
return listFirstRow();
if (input.value != 0) {
mSelectorBarOffset = 0;
return listFirstRow();
}
}
else if (config->isMappedLike("righttrigger", input)) {
mSelectorBarOffset = mEntries.size() - 1;
return listLastRow();
if (input.value != 0) {
mSelectorBarOffset = mEntries.size() - 1;
return listLastRow();
}
}
return false;