Added precise tile cursor movement (defaults to 8 pixels per key press).
This commit is contained in:
		| @@ -63,7 +63,23 @@ namespace stardew_access.Features | |||||||
|  |  | ||||||
|         public void HandleInput() |         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)); |                 this.cursorMoveInput(new Vector2(0, -Game1.tileSize)); | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -25,6 +25,7 @@ namespace stardew_access | |||||||
|         public KeybindList TimeNSeasonKey { get; set; } = KeybindList.Parse("Q"); |         public KeybindList TimeNSeasonKey { get; set; } = KeybindList.Parse("Q"); | ||||||
|         public KeybindList ReadTileKey { get; set; } = KeybindList.Parse("J"); |         public KeybindList ReadTileKey { get; set; } = KeybindList.Parse("J"); | ||||||
|         public KeybindList ReadStandingTileKey { get; set; } = KeybindList.Parse("LeftAlt + J"); |         public KeybindList ReadStandingTileKey { get; set; } = KeybindList.Parse("LeftAlt + J"); | ||||||
|  |         public int TileCursorPreciseMovementDistance { get; set; } = 8; | ||||||
|  |  | ||||||
|         //Tile viewer keys |         //Tile viewer keys | ||||||
|         public KeybindList TileCursorUpKey { get; set; } = KeybindList.Parse("Up"); |         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 TileCursorPreciseRightKey { get; set; } = KeybindList.Parse("LeftShift + Right"); | ||||||
|         public KeybindList TileCursorPreciseDownKey { get; set; } = KeybindList.Parse("LeftShift + Down"); |         public KeybindList TileCursorPreciseDownKey { get; set; } = KeybindList.Parse("LeftShift + Down"); | ||||||
|         public KeybindList TileCursorPreciseLeftKey { get; set; } = KeybindList.Parse("LeftShift + Left"); |         public KeybindList TileCursorPreciseLeftKey { get; set; } = KeybindList.Parse("LeftShift + Left"); | ||||||
|  |         public KeybindList ToggleRelativeCursorLockKey { get; set; } = KeybindList.Parse("L"); | ||||||
|         #endregion |         #endregion | ||||||
|  |  | ||||||
|         // TODO Add the exclusion and focus list too |         // TODO Add the exclusion and focus list too | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user