Fixed attract mode; was broken in the new menu handler.

This commit is contained in:
Pieter Hulshoff 2017-01-13 16:17:38 +01:00
parent 2360fb39b7
commit cae8a063e3
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}
}