Support left and right buttons in reader and file picker

This commit is contained in:
Dave Allie
2025-12-04 00:11:16 +11:00
parent aee239a931
commit 47eb1157ef
2 changed files with 7 additions and 7 deletions

View File

@@ -46,10 +46,10 @@ void FileSelectionScreen::onExit() {
}
void FileSelectionScreen::handleInput(const Input input) {
if (input.button == VOLUME_DOWN) {
if (input.button == VOLUME_DOWN || input.button == RIGHT) {
selectorIndex = (selectorIndex + 1) % files.size();
updateRequired = true;
} else if (input.button == VOLUME_UP) {
} else if (input.button == VOLUME_UP || input.button == LEFT) {
selectorIndex = (selectorIndex + files.size() - 1) % files.size();
updateRequired = true;
} else if (input.button == CONFIRM) {