public static void Initialize() { TouchPanel.EnabledGestures = GestureType.None; TouchPanel.DisplayHeight = RPGGame.GetClientBounds().Height; TouchPanel.DisplayWidth = RPGGame.GetClientBounds().Width; _useMouse = !TouchPanel.GetCapabilities().IsConnected; }
private static bool CursorInWindow() { return(RPGGame.GetClientBounds().Contains(_nowMouseState.Position + RPGGame.GetClientBounds().Location)); }