diff --git a/MLEM/Input/InputHandler.cs b/MLEM/Input/InputHandler.cs index a1f7186..4922625 100644 --- a/MLEM/Input/InputHandler.cs +++ b/MLEM/Input/InputHandler.cs @@ -11,8 +11,6 @@ using MLEM.Misc; namespace MLEM.Input { public class InputHandler { - public static readonly MouseButton[] MouseButtons = EnumHelper.GetValues().ToArray(); - public KeyboardState LastKeyboardState { get; private set; } public KeyboardState KeyboardState { get; private set; } public Keys[] PressedKeys { get; private set; } diff --git a/MLEM/Input/MouseExtensions.cs b/MLEM/Input/MouseExtensions.cs index 4e56245..f62abb9 100644 --- a/MLEM/Input/MouseExtensions.cs +++ b/MLEM/Input/MouseExtensions.cs @@ -1,9 +1,13 @@ using System; +using System.Linq; using Microsoft.Xna.Framework.Input; +using MLEM.Misc; namespace MLEM.Input { public static class MouseExtensions { + public static readonly MouseButton[] MouseButtons = EnumHelper.GetValues().ToArray(); + public static ButtonState GetState(this MouseState state, MouseButton button) { switch (button) { case MouseButton.Left: