From 3923ad32c6f36ea68da337e5ad46b355efba7022 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 2 Aug 2020 15:04:43 +0200 Subject: [PATCH] Fixed an issue where trigger input in menus wasn't handled correctly. --- es-core/src/components/ComponentList.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/es-core/src/components/ComponentList.cpp b/es-core/src/components/ComponentList.cpp index a5e611eb4..4cdaa0aaa 100644 --- a/es-core/src/components/ComponentList.cpp +++ b/es-core/src/components/ComponentList.cpp @@ -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;