Reset input redirection on screen change

It's possible for LUA to redirect input and not bring it back when screen is
ending (and there are existing bugs like this in Simply Love). Considering that
each screen is a separate entity, it seems like this shouldn't be possible and
each screen should handle redirection separately. Split redirection state per
each screen in the stack and clear it once screen is ending.
This commit is contained in:
phantom10111
2024-04-04 09:15:07 +02:00
committed by teejusb
parent 04c234831b
commit 17c4e7a2ff
3 changed files with 16 additions and 16 deletions
+3
View File
@@ -106,6 +106,9 @@ void Screen::EndScreen()
{
this->PlayCommand( "End" );
m_bRunning = false;
m_InputCallbacks.clear();
m_DelayedCallbackRemovals.clear();
}
void Screen::Update( float fDeltaTime )