diff --git a/stardew-access/Features/MouseHandler.cs b/stardew-access/Features/TileViewer.cs similarity index 99% rename from stardew-access/Features/MouseHandler.cs rename to stardew-access/Features/TileViewer.cs index a84f52e..4d06f8f 100644 --- a/stardew-access/Features/MouseHandler.cs +++ b/stardew-access/Features/TileViewer.cs @@ -8,7 +8,7 @@ using stardew_access.Features; namespace stardew_access.Features { - public class MouseHandler + public class TileViewer { private Vector2 ViewingOffset = Vector2.Zero; diff --git a/stardew-access/ModEntry.cs b/stardew-access/ModEntry.cs index 2dd3899..d46348e 100644 --- a/stardew-access/ModEntry.cs +++ b/stardew-access/ModEntry.cs @@ -20,7 +20,7 @@ namespace stardew_access private static StaticTiles? sTiles; private static IScreenReader? screenReader; private static IModHelper? modHelper; - private static MouseHandler? mouse; + private static TileViewer? tileViewer; internal static ModConfig Config { get => config; set => config = value; } public static IModHelper? ModHelper { get => modHelper; } @@ -64,13 +64,13 @@ namespace stardew_access set => screenReader = value; } - public static MouseHandler Mouse + public static TileViewer TileViewer { get { - if (mouse == null) - mouse = new MouseHandler(); - return mouse; + if (tileViewer == null) + tileViewer = new TileViewer(); + return tileViewer; } } @@ -142,7 +142,8 @@ get // Narrate current location's name Other.narrateCurrentLocation(); - Mouse.update(); + //handle TileCursor update logic + TileViewer.update(); if (!ReadTile.isReadingTile && Config.ReadTile) { @@ -269,7 +270,7 @@ get } // Tile viewing cursor keys - Mouse.HandleInput(); + TileViewer.HandleInput(); } public static void ErrorLog(string message)