public override void HandleInput( InputState input ) { // If the user presses a button, return to the menu if( input.MenuCancel || input.MenuSelect ) { ExitScreen(); ScreenManager.AddScreen( new MainMenuScreen() ); } }
public override void HandleInput( InputState input ) { if( input.MenuSelect ) { if( Accepted != null ) Accepted( this, EventArgs.Empty ); ExitScreen(); } else if( input.MenuCancel ) { if( Cancelled != null ) Cancelled( this, EventArgs.Empty ); ExitScreen(); } }
public override void HandleInput( InputState input ) { // play a sound effect for menu changes if( input.MenuUp || input.MenuDown ) { Audio.Play( "Focus Menu Item" ); } base.HandleInput( input ); }
public override void HandleInput( InputState input ) { // Allow the player to skip study time if( !isShuffling && input.MenuSelect ) { if( studyTime < sideStudyDuration ) studyTime = sideStudyDuration; else if( studyTime < sideStudyDuration * 2 ) studyTime = sideStudyDuration * 2; } else if( input.MenuCancel ) { ExitToMenu(); } }
public virtual void HandleInput( InputState input ) { }