From 083cf78797674af20f588cd8f3e51fcd1d2d656f Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sun, 28 Nov 2021 11:58:17 +0100 Subject: [PATCH] fix long press navigation bug (fixes #845) --- src/gui/LauncherDialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/LauncherDialog.cxx b/src/gui/LauncherDialog.cxx index 102aefcf7..21408b87c 100644 --- a/src/gui/LauncherDialog.cxx +++ b/src/gui/LauncherDialog.cxx @@ -722,8 +722,9 @@ void LauncherDialog::handleKeyDown(StellaKey key, StellaMod mod, bool repeated) void LauncherDialog::handleJoyDown(int stick, int button, bool longPress) { myEventHandled = false; - myList->setFlags(Widget::FLAG_WANTS_RAWDATA); // allow handling long button press + myList->setFlags(Widget::FLAG_WANTS_RAWDATA); // allow handling long button press Dialog::handleJoyDown(stick, button, longPress); + myList->clearFlags(Widget::FLAG_WANTS_RAWDATA); // revert flag afterwards! } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -