public override void HandleInput(InputState input) { if (input.IsMenuDown()) { selected++; if (selected >= menuItems.Count) { selected = 0; } } if (input.IsMenuUp()) { selected--; if (selected < 0) { selected = menuItems.Count - 1; } } if (input.IsMenuSelect()) { OnSelectEntry(selected); } if (input.IsMenuCancel()) { OnCancel(); } }
public override void HandleInput(InputState input) { if (input.IsPause() && isPaused == false) { ScreenManager.AddScreen(new PauseScreen(this)); isPaused = true; } }
public virtual void HandleInput(InputState input) { }