mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-02-02 21:15:35 +01:00
Fixed menu animation when pressing a key during onEnter animation.
This commit is contained in:
parent
25445924ad
commit
cbcfc498a3
@ -281,7 +281,7 @@ void RetroFE::run()
|
|||||||
// account for when returning from a menu and the previous key was still "stuck"
|
// account for when returning from a menu and the previous key was still "stuck"
|
||||||
if(lastLaunchReturnTime_ == 0 || (currentTime_ - lastLaunchReturnTime_ > .3))
|
if(lastLaunchReturnTime_ == 0 || (currentTime_ - lastLaunchReturnTime_ > .3))
|
||||||
{
|
{
|
||||||
if(currentPage_->isMenuIdle())
|
if(currentPage_->isIdle())
|
||||||
{
|
{
|
||||||
state = processUserInput(currentPage_);
|
state = processUserInput(currentPage_);
|
||||||
}
|
}
|
||||||
@ -313,6 +313,7 @@ void RetroFE::run()
|
|||||||
case RETROFE_ENTER:
|
case RETROFE_ENTER:
|
||||||
if(currentPage_->isIdle())
|
if(currentPage_->isIdle())
|
||||||
{
|
{
|
||||||
|
currentPage_->resetScrollPeriod();
|
||||||
state = RETROFE_IDLE;
|
state = RETROFE_IDLE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user