mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-19 02:12:46 +01:00
Fixed attract mode; was broken in the new menu handler.
This commit is contained in:
@@ -49,6 +49,12 @@ void AttractMode::update(float dt, Page &page)
|
||||
{
|
||||
page.setScrolling(Page::ScrollDirectionForward);
|
||||
|
||||
if (page.isMenuIdle())
|
||||
{
|
||||
page.scroll(true);
|
||||
page.updateScrollPeriod();
|
||||
}
|
||||
|
||||
if(elapsedTime_ > activeTime_)
|
||||
{
|
||||
elapsedTime_ = 0;
|
||||
|
||||
@@ -678,6 +678,7 @@ RetroFE::RETROFE_STATE RetroFE::processUserInput(Page *page)
|
||||
input_.update(e);
|
||||
if(e.type == SDL_KEYDOWN && !e.key.repeat)
|
||||
{
|
||||
attract_.reset();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user