simpler approach to letting overlay screens grab input

This commit is contained in:
Glenn Maynard
2005-03-09 02:45:33 +00:00
parent c829318686
commit d7911ccff9
3 changed files with 23 additions and 6 deletions
+9
View File
@@ -105,6 +105,15 @@ void Screen::MenuBack( PlayerNumber pn, const InputEventType type )
MenuBack(pn);
}
/* ScreenManager sends input here first. Overlay screens can use it to get a first
* pass at input. Return true if the input was handled and should not be passed
* to lower screens, or false if not handled. If true is returned, Input() will
* not be called, either. Normal screens should not overload this function. */
bool Screen::OverlayInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
{
return false;
}
void Screen::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
{
/* Don't send release messages with the default handler. */