fix long press navigation bug (fixes #845)

This commit is contained in:
Thomas Jentzsch 2021-11-28 11:58:17 +01:00
parent e4bb59a760
commit ecf7afea70
1 changed files with 2 additions and 1 deletions

View File

@ -722,8 +722,9 @@ void LauncherDialog::handleKeyDown(StellaKey key, StellaMod mod, bool repeated)
void LauncherDialog::handleJoyDown(int stick, int button, bool longPress) void LauncherDialog::handleJoyDown(int stick, int button, bool longPress)
{ {
myEventHandled = false; 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); Dialog::handleJoyDown(stick, button, longPress);
myList->clearFlags(Widget::FLAG_WANTS_RAWDATA); // revert flag afterwards!
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -