SadConsole.Input.MouseInfo.Clone C# (CSharp) Method

Clone() public method

Returns a clone of this object.
public Clone ( ) : MouseInfo
return MouseInfo
        public virtual MouseInfo Clone()
        {
            var returnValue = new MouseInfo();

            returnValue.Cell = this.Cell;
            returnValue.Console = this.Console;
            returnValue.ConsoleLocation = this.ConsoleLocation;
            returnValue.LeftButtonDown = this.LeftButtonDown;
            returnValue.LeftClicked = this.LeftClicked;
            returnValue.RightButtonDown = this.RightButtonDown;
            returnValue.RightClicked = this.RightClicked;
            returnValue.ScreenLocation = this.ScreenLocation;
            returnValue.WorldLocation = this.WorldLocation;

            return returnValue;
        }