static void Input() { float dx = 0, dy = 0; if (Keyboard.IsKeyPressed(Keyboard.Key.W)) { dx = 0; dy = -1; ApplyAdditionalMoveModifeirs(dx, dy); } if (Keyboard.IsKeyPressed(Keyboard.Key.A)) { dx = -1; dy = 0; ApplyAdditionalMoveModifeirs(dx, dy); } if (Keyboard.IsKeyPressed(Keyboard.Key.S)) { dx = 0; dy = 1; ApplyAdditionalMoveModifeirs(dx, dy); } if (Keyboard.IsKeyPressed(Keyboard.Key.D)) { dx = 1; dy = 0; ApplyAdditionalMoveModifeirs(dx, dy); } if (Keyboard.IsKeyPressed(Keyboard.Key.X)) { R++; Vector2f pos = circle.Position; circle = new CircleShape(R); circle.Position = pos; } if (Keyboard.IsKeyPressed(Keyboard.Key.Z)) { R--; Vector2f pos = circle.Position; circle = new CircleShape(R); circle.Position = pos; } if (Keyboard.IsKeyPressed(Keyboard.Key.Escape)) { window.Close(); } if (Keyboard.IsKeyPressed(Keyboard.Key.H)) { text(); while (IsHelpWindowOpen()) { if (Keyboard.IsKeyPressed(Keyboard.Key.Enter)) { ControlsWindow.Close(); } } } if (Keyboard.IsKeyPressed(Keyboard.Key.F)) { window.Close(); Render(); } NewColor(); }