Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
BlurOne-GIT committed Apr 7, 2024
1 parent 40f12e3 commit 55fb526
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion MmgEngine/GameState.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using Microsoft.Xna.Framework;

namespace MmgEngine;
Expand Down
2 changes: 1 addition & 1 deletion MmgEngine/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void UpdateMouseInput(MouseState mouseState)
RightButton = Convert.ToBoolean(mouseState.RightButton);
XButton1 = Convert.ToBoolean(mouseState.XButton1);
XButton2 = Convert.ToBoolean(mouseState.XButton2);
MousePoint = ((mouseState.Position.ToVector2() - EngineStatics.Offset) / EngineStatics.Scale ).ToPoint();
MousePoint = ((mouseState.Position.ToVector2() - EngineStatics.Offset) / EngineStatics.Scale).ToPoint();
}

private static void CheckMouseInput(ref bool button, bool value, [CallerMemberName] string name = null)
Expand Down

0 comments on commit 55fb526

Please sign in to comment.