prevent zooming when in orthographic perspective

This commit is contained in:
2026-02-27 03:35:54 +01:00
parent 2517a9d33b
commit f512306109
3 changed files with 11 additions and 7 deletions

View File

@ -173,17 +173,11 @@ private:
public: public:
auto GetBackgroundColor() const -> Color; auto GetBackgroundColor() const -> Color;
auto HelpPopup() -> void; auto HelpPopup() -> void;
auto DrawSavePresetPopup() -> void; auto DrawSavePresetPopup() -> void;
auto DrawMainMenu() -> void; auto DrawMainMenu() -> void;
auto DrawPuzzleBoard() -> void; auto DrawPuzzleBoard() -> void;
auto DrawGraphOverlay(int fps, int ups) -> void; auto DrawGraphOverlay(int fps, int ups) -> void;
auto Update() -> void; auto Update() -> void;
}; };

View File

@ -115,7 +115,8 @@ auto InputHandler::CameraRotate() -> void {
auto InputHandler::CameraStopRotate() -> void { camera_rotating = false; } auto InputHandler::CameraStopRotate() -> void { camera_rotating = false; }
auto InputHandler::CameraZoom() -> void { auto InputHandler::CameraZoom() -> void {
if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL)) { if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL) ||
camera.projection == CAMERA_ORTHOGRAPHIC) {
return; return;
} }

View File

@ -16,6 +16,15 @@
#endif #endif
// TODO: Click states in the graph to display them in the board // TODO: Click states in the graph to display them in the board
// TODO: Add some popups
// - Next move, goto target, goto worst: Notify that the graph needs to be
// populated
// - Clear graph: Notify that this will clear the visited states and move
// history
// - Reset state: Notify that this will reset the move count
// Remove the keybindings, as it's simpler to show the popups from the
// button?
// TODO: Set selection to 0, 0 when resetting the state
// NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy. // NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.