handle IET_LEVEL_CHANGED

This commit is contained in:
Glenn Maynard
2004-09-09 22:21:50 +00:00
parent 4e5077ef84
commit 649b3df153
6 changed files with 16 additions and 21 deletions
+9 -1
View File
@@ -109,7 +109,15 @@ void Screen::MenuBack( PlayerNumber pn, const InputEventType type )
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. */
if(type == IET_RELEASE) return; // don't care
switch( type )
{
case IET_FIRST_PRESS:
case IET_SLOW_REPEAT:
case IET_FAST_REPEAT:
break; /* OK */
default:
return; // don't care
}
/* Don't make the user hold the back button if they're pressing escape and escape is the back button. */
if( MenuI.button == MENU_BUTTON_BACK && DeviceI.device == DEVICE_KEYBOARD && DeviceI.button == KEY_ESC )