public override void HandleInput(InputState input) { if (input.IsMenuUp(PlayerIndex.One)) { selectedEntry--; if (selectedEntry < 0) selectedEntry = menuEntries.Count - 1; } if (input.IsMenuDown(PlayerIndex.One)) { selectedEntry++; if (selectedEntry >= menuEntries.Count) selectedEntry = 0; } PlayerIndex playerIndex; if (input.IsMenuSelect(PlayerIndex.One, out playerIndex)) { OnSelectEntry(selectedEntry, playerIndex); } else if (input.IsMenuCancel(PlayerIndex.One, out playerIndex)) { OnCancel(playerIndex); } SelectedEntry = selectedEntry; }