public void Update(ref ApplicationState appState, InputState input, PlayerIndex[] controllingPlayer) { base.Update(input, controllingPlayer); if (confirm == true) { switch (quitScreen.Update(input, controllingPlayer)) { case 1: appState = ApplicationState.InitaliseApp; break; case 0: confirm = false; menuIndex = 1; return; } } if (selectedIndex == 0 || (input.IsNewButtonPress(ButtonMappings.Pad_BBtn, controllingPlayer[0], out controllingPlayer[1]) || input.IsNewKeyPress(ButtonMappings.Keyboard_BBtn, controllingPlayer[0], out controllingPlayer[1]))) { menuIndex = 0; appState = ApplicationState.Playing; } else if (selectedIndex == 1) { confirm = true; quitScreen.Reset(); } }