Changes in preparation for handling IET_RELEASE.

This commit is contained in:
Glenn Maynard
2002-08-21 21:47:06 +00:00
parent 2f82d0be50
commit 7c905e971c
4 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -48,7 +48,11 @@ void Screen::Update( float fDeltaTime )
void Screen::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
{
if( DeviceI.device == DEVICE_KEYBOARD && DeviceI.button == DIK_ESCAPE ) // don't make user hold back button if they're pressing escape
/* Don't send release messages with the default handler. */
if(type == IET_RELEASE) return; // don't care
// don't make user hold back button if they're pressing escape
if( DeviceI.device == DEVICE_KEYBOARD && DeviceI.button == DIK_ESCAPE )
{
this->MenuBack( MenuI.player );
return;