mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
Fixed attract mode; was broken in the new menu handler.
This commit is contained in:
parent
2360fb39b7
commit
cae8a063e3
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user