Once a screen is queued to load, discard further inputs

This commit is contained in:
Glenn Maynard
2005-01-19 21:44:03 +00:00
parent d8b7d68842
commit e9789a861d
+9 -2
View File
@@ -214,8 +214,15 @@ void ScreenManager::Input( const DeviceInput& DeviceI, const InputEventType type
// DeviceI.device, DeviceI.button, GameI.controller, GameI.button, MenuI.player, MenuI.button, StyleI.player, StyleI.col );
// pass input only to topmost state
if( !m_ScreenStack.empty() )
m_ScreenStack.back()->Input( DeviceI, type, GameI, MenuI, StyleI );
if( m_ScreenStack.empty() )
return;
/* If a screen is queued to load, discard other inputs. Coin inputs
* are handled before they get here, so they won't be discarded. */
if( m_sDelayedScreen != "" )
return;
m_ScreenStack.back()->Input( DeviceI, type, GameI, MenuI, StyleI );
}