From b144da23993e99ebf58593e21489f566dec498f2 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 15 Sep 2023 13:54:03 -0400 Subject: [PATCH] StraightenTool: hold shift/ctrl for less/more rotation per keypress --- Program.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index a3af112..cc493d3 100644 --- a/Program.cs +++ b/Program.cs @@ -270,11 +270,23 @@ public class StraightenTool : ITool { } if (input.IsKeyPressed(Keys.Left)) { - photo.RotationDegreeHundredths += 10; + if (input.IsKeyDown(Keys.LeftControl)) { + photo.RotationDegreeHundredths += 100; + } else if (input.IsKeyDown(Keys.LeftShift)) { + photo.RotationDegreeHundredths += 1; + } else { + photo.RotationDegreeHundredths += 10; + } } if (input.IsKeyPressed(Keys.Right)) { - photo.RotationDegreeHundredths -= 10; + if (input.IsKeyDown(Keys.LeftControl)) { + photo.RotationDegreeHundredths -= 100; + } else if (input.IsKeyDown(Keys.LeftShift)) { + photo.RotationDegreeHundredths -= 1; + } else { + photo.RotationDegreeHundredths -= 10; + } } if (input.IsKeyPressed(Keys.Enter)) {