diff --git a/stardew-access/Features/MouseHandler.cs b/stardew-access/Features/MouseHandler.cs index 678b8c4..33af128 100644 --- a/stardew-access/Features/MouseHandler.cs +++ b/stardew-access/Features/MouseHandler.cs @@ -63,7 +63,23 @@ namespace stardew_access.Features public void HandleInput() { - if (MainClass.Config.TileCursorUpKey.JustPressed()) + if (MainClass.Config.TileCursorPreciseUpKey.JustPressed()) + { + this.cursorMoveInput(new Vector2(0, -MainClass.Config.TileCursorPreciseMovementDistance), true); + } + else if (MainClass.Config.TileCursorPreciseRightKey.JustPressed()) + { + this.cursorMoveInput(new Vector2(MainClass.Config.TileCursorPreciseMovementDistance, 0), true); + } + else if (MainClass.Config.TileCursorPreciseDownKey.JustPressed()) + { + this.cursorMoveInput(new Vector2(0, MainClass.Config.TileCursorPreciseMovementDistance), true); + } + else if (MainClass.Config.TileCursorPreciseLeftKey.JustPressed()) + { + this.cursorMoveInput(new Vector2(-MainClass.Config.TileCursorPreciseMovementDistance, 0), true); + } + else if (MainClass.Config.TileCursorUpKey.JustPressed()) { this.cursorMoveInput(new Vector2(0, -Game1.tileSize)); } diff --git a/stardew-access/ModConfig.cs b/stardew-access/ModConfig.cs index 388d7fd..445fa1b 100644 --- a/stardew-access/ModConfig.cs +++ b/stardew-access/ModConfig.cs @@ -25,6 +25,7 @@ namespace stardew_access public KeybindList TimeNSeasonKey { get; set; } = KeybindList.Parse("Q"); public KeybindList ReadTileKey { get; set; } = KeybindList.Parse("J"); public KeybindList ReadStandingTileKey { get; set; } = KeybindList.Parse("LeftAlt + J"); + public int TileCursorPreciseMovementDistance { get; set; } = 8; //Tile viewer keys public KeybindList TileCursorUpKey { get; set; } = KeybindList.Parse("Up"); @@ -35,7 +36,7 @@ namespace stardew_access public KeybindList TileCursorPreciseRightKey { get; set; } = KeybindList.Parse("LeftShift + Right"); public KeybindList TileCursorPreciseDownKey { get; set; } = KeybindList.Parse("LeftShift + Down"); public KeybindList TileCursorPreciseLeftKey { get; set; } = KeybindList.Parse("LeftShift + Left"); - + public KeybindList ToggleRelativeCursorLockKey { get; set; } = KeybindList.Parse("L"); #endregion // TODO Add the exclusion and focus list too