public override void HandleInput()
{
// Move to the previous menu entry
if (ScreenManager.InputManager.CheckNewAction(InputAction.MenuUp))
{
selectedEntry--;
if (selectedEntry < 0)
selectedEntry = menuEntries.Count - 1;
}
// Move to the next menu entry
if (ScreenManager.InputManager.CheckNewAction(InputAction.MenuDown))
{
selectedEntry++;
if (selectedEntry >= menuEntries.Count)
selectedEntry = 0;
}
if (ScreenManager.InputManager.CheckNewAction(InputAction.MenuSelect))
OnSelectEntry(selectedEntry);
else if (ScreenManager.InputManager.CheckNewAction(InputAction.MenuCancel))
OnCancel();
}