mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed an issue where trigger input in menus wasn't handled correctly.
This commit is contained in:
parent
dec3a74e16
commit
3923ad32c6
|
@ -92,12 +92,16 @@ bool ComponentList::input(InputConfig* config, Input input)
|
||||||
return listInput(input.value != 0 ? 6 : 0);
|
return listInput(input.value != 0 ? 6 : 0);
|
||||||
}
|
}
|
||||||
else if (config->isMappedLike("lefttrigger", input)) {
|
else if (config->isMappedLike("lefttrigger", input)) {
|
||||||
mSelectorBarOffset = 0;
|
if (input.value != 0) {
|
||||||
return listFirstRow();
|
mSelectorBarOffset = 0;
|
||||||
|
return listFirstRow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (config->isMappedLike("righttrigger", input)) {
|
else if (config->isMappedLike("righttrigger", input)) {
|
||||||
mSelectorBarOffset = mEntries.size() - 1;
|
if (input.value != 0) {
|
||||||
return listLastRow();
|
mSelectorBarOffset = mEntries.size() - 1;
|
||||||
|
return listLastRow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue