public override void HandleInput() { if (InputManager.IsEscPressed()) { StateMachine.AddState(new PauseState(), false).SetBackgroundTexture(Utilities.TakeScreenshot()); } if (InputManager.ScrollDelta > 0) { IncreaseIndex(); } if (InputManager.ScrollDelta < 0) { DecreaseIndex(); } if (InputManager.IsMouseButtonPressed(SFML.Window.Mouse.Button.XButton1)) { selectMode = selectMode.Next(); UpdateSelect(); } if (InputManager.IsMouseButtonPressed(SFML.Window.Mouse.Button.XButton2)) { selectMode = selectMode.Previous(); UpdateSelect(); } }