MouseMovementTriggerTests MoveMouseToUpdatePositionOfCircle Method Delta Engine Documentation

Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void MoveMouseToUpdatePositionOfCircle()
Examples

[Test]
public void MoveMouseToUpdatePositionOfCircle()
{
    var ellipse = new Ellipse(new Rectangle(-0.1f, -0.1f, 0.1f, 0.1f), Color.Red);
    new Command(pos => ellipse.Center = pos).Add(new MouseMovementTrigger());
}
See Also