﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace Crafty.Utils.Statics
{
    public static class KMState
    {
        public static KeyboardState KeyboardState { get; set; }
        public static MouseState MouseState { get; set; }
        public static Point MousePos
        {
            get
            {
                return new Point((int)(MouseState.X * (CraftySettings.VirtualScreen.X / CraftyConfig.Resolution.X))
                    , (int)(MouseState.Y * (CraftySettings.VirtualScreen.Y / CraftyConfig.Resolution.Y)));
            }
        }
        public static Rectangle MouseRec
        {
            get
            {
                return new Rectangle(MousePos.X, MousePos.Y, 1, 1);
            }
        }
    }
}
