Add double and long clicks in lists

This commit is contained in:
jpirnay
2026-05-13 14:00:07 +02:00
parent d337110649
commit c8c697da06
24 changed files with 169 additions and 333 deletions
+3 -8
View File
@@ -27,14 +27,9 @@ void MenuListActivity::onEnter() {
}
void MenuListActivity::handleNavigation() {
buttonNavigator.onNext([this] {
selectedIndex = buttonNavigator.nextIndex(selectedIndex);
requestUpdate();
});
buttonNavigator.onPrevious([this] {
selectedIndex = buttonNavigator.previousIndex(selectedIndex);
requestUpdate();
});
const int count = static_cast<int>(menuItems.size());
buttonNavigator.onNextList(selectedIndex, count, [this] { requestUpdate(); });
buttonNavigator.onPreviousList(selectedIndex, count, [this] { requestUpdate(); });
}
void MenuListActivity::toggleCurrentItem() {