just call Input from OverlayInput

This commit is contained in:
Devin J. Pohly
2013-01-12 23:08:38 -05:00
parent d13ac7e7a2
commit 9c9e2f995f
+3 -9
View File
@@ -175,15 +175,9 @@ void Screen::Update( float fDeltaTime )
* function. */ * function. */
bool Screen::OverlayInput( const InputEventPlus &input ) bool Screen::OverlayInput( const InputEventPlus &input )
{ {
// Allow overlays to respond to codes // XXX Eventually merge this function with Input() once the necessary
Message msg(""); // changes are made in ScreenManager.
if( m_Codes.InputMessage(input, msg) ) return this->Input(input);
{
this->HandleMessage( msg );
return true;
}
return false;
} }
/* Returns true if the input was handled, or false if not handled. */ /* Returns true if the input was handled, or false if not handled. */