From e8589cbc16bcbebdcbb81d88e4a007aa2e9951af Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 28 Jun 2023 20:40:54 +0200 Subject: [PATCH] Added trigger button support to the theme downloader screenshot viewer --- es-app/src/guis/GuiThemeDownloader.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/es-app/src/guis/GuiThemeDownloader.cpp b/es-app/src/guis/GuiThemeDownloader.cpp index 6f8632b1d..e31f19369 100644 --- a/es-app/src/guis/GuiThemeDownloader.cpp +++ b/es-app/src/guis/GuiThemeDownloader.cpp @@ -1119,6 +1119,14 @@ bool GuiThemeDownloader::input(InputConfig* config, Input input) ++mFullscreenViewerIndex; return true; } + else if (config->isMappedLike("lefttrigger", input)) { + mFullscreenViewerIndex = 0; + return true; + } + else if (config->isMappedLike("righttrigger", input)) { + mFullscreenViewerIndex = mViewerScreenshots.size() - 1; + return true; + } else { mViewerScreenshots.clear(); mViewerCaptions.clear();